Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
[+] Added toString method to NodeConvert
[·] Removed blank spaces from Token class
  • Loading branch information
Ziocash committed Jul 19, 2024
1 parent 2d7b2e7 commit 5f6f569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CompilatoreAcDc/src/ast/NodeConvert.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ public NodeExpr getExpr() {
public void accept(IVisitor visitor) {
visitor.visit(this);
}

@Override
public String toString() {
return "[Convert:FLOAT," + expr.toString() + "]" ;
}
}
3 changes: 0 additions & 3 deletions CompilatoreAcDc/src/token/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,4 @@ public String toString() {
builder = value != null ? builder.append(","+value+">") : builder.append(">");
return builder.toString();
}



}

0 comments on commit 5f6f569

Please sign in to comment.