public void BooleanParse() { var file = PascalInterpreterTests.GetFile("PascalBoolean.txt"); var tokens = lexer.Tokenize(file); var node = ast.Evaluate(tokens); }
public void FunctionDeclaration_Should_CreateFunctionSymbol() { var input = PascalInterpreterTests.GetFile("PascalFunction.txt"); var table = CheckSyntax(input); table.LookupSymbol <FunctionDeclarationSymbol>("Add", true).Should().NotBeNull(); }
public void PascalNoNonPascalExceptionsWhenAddingTokens() { var file = PascalInterpreterTests.GetFile("PascalFunctionSelfCall.txt"); DoesNotFail(file); }