This commit is contained in:
ChUrl
2020-12-14 17:29:50 +01:00
parent 29def0a645
commit 4132551f0e
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="CompilerProjekt:main" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="de.churl" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
<component name="CheckStyle-IDEA-Module">
<option name="configuration">
<map />
</option>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">

View File

@ -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);
}

View File

@ -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);
}
}