@@ -0,0 +1,1191 @@
+package maintest;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport org.antlr.v4.runtime.ANTLRInputStream;%0D%0Aimport org.antlr.v4.runtime.CommonTokenStream;%0D%0Aimport org.junit.*;%0D%0A%0D%0Aimport typecheck.Symboles;%0D%0Aimport typecheck.TypeChecker;%0D%0Aimport antlr.QLangLexer;%0D%0Aimport antlr.QLangParser;%0D%0Aimport ast.ASTNode;%0D%0Aimport ast.visitors.BaseVisitor;%0D%0A%0D%0Apublic class TypeCheckerTest %7B%0D%0A%09%0D%0A%09@Test%0D%0A%09public void test(boolean expected, String str)%7B%0D%0A%09%09System.out.println(%22Input String: %22 + str);%0D%0A%09%09ANTLRInputStream input = new ANTLRInputStream(str);%0D%0A%09%09QLangLexer lexer = new QLangLexer(input);%0D%0A%09%09CommonTokenStream tokens = new CommonTokenStream(lexer);%0D%0A%09%09QLangParser parser = new QLangParser(tokens);%0D%0A%09%09ASTNode tree = parser.form().result;%0D%0A%09%09BaseVisitor visitor = new BaseVisitor();%0D%0A%09%09System.out.println(tree.accept(visitor));%0D%0A%09%09%0D%0A%09%09Symboles symb = new Symboles();%0D%0A%09%09TypeChecker checker = new TypeChecker(symb);%0D%0A%09%09boolean result = checker.check_symb(tree, symb);%0D%0A%09%09assertEquals(expected, result);%0D%0A%09%09%0D%0A%09%7D%0D%0A%09%0D%0A%09@Test%0D%0A%09public void testSymboles()%7B%0D%0A%09%09System.out.println(%22start test%22);%0D%0A%09%09test(true, %22form Box1HouseOwning %7B hasSoldHouse: %5C%22Did you sell a house in 2010?%5C%22 boolean %7D%22);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Test Typechecker added but still unable to run