updates
This commit is contained in:
@ -86,6 +86,7 @@ class Demo {
|
||||
AST tree = stupsParser.parse(lex.getAllTokens(), lex.getVocabulary());
|
||||
|
||||
tree.postprocess(grammar);
|
||||
System.out.println("After Postprocessing:" + tree);
|
||||
|
||||
TypeChecker.validate(tree);
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
class MyClass {
|
||||
|
||||
class C {
|
||||
public static void main(String[] args) {
|
||||
boolean x = false && true;
|
||||
int a = 1;
|
||||
int b = 1;
|
||||
|
||||
int c = (a + b) * 3 / (1 - 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user