Skip to content

Commit

Permalink
Update ConcreteSyntax.java
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvas12 authored Nov 25, 2024
1 parent fe38ea4 commit 96a6d51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/scanner/project/ConcreteSyntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private String SyntaxError(String tok) {
// Match a string with the value of a token. If no problem, go to the next
// token otherwise generate an error message
private void match(String s) {
System.out.println(token.getValue());
//System.out.println(token.getValue());
if (token.getValue().equals(s))
token = input.nextToken();
else
Expand Down Expand Up @@ -87,7 +87,7 @@ private Type type() {
else if (token.getValue().equals("bool"))
t = new Type(token.getValue());
else
throw new RuntimeException(SyntaxError("int | boolean"));
throw new RuntimeException(SyntaxError("integer | boolean"));
token = input.nextToken(); // pass over the type
return t;
}
Expand Down Expand Up @@ -337,4 +337,4 @@ private boolean isInteger(String s) {
result = false;
return result;
}
}
}

0 comments on commit 96a6d51

Please sign in to comment.