public void BooleanParse()
        {
            var file = PascalInterpreterTests.GetFile("PascalBoolean.txt");

            var tokens = lexer.Tokenize(file);
            var node   = ast.Evaluate(tokens);
        }
Beispiel #2
0
        public void FunctionDeclaration_Should_CreateFunctionSymbol()
        {
            var input = PascalInterpreterTests.GetFile("PascalFunction.txt");

            var table = CheckSyntax(input);

            table.LookupSymbol <FunctionDeclarationSymbol>("Add", true).Should().NotBeNull();
        }
Beispiel #3
0
        public void PascalNoNonPascalExceptionsWhenAddingTokens()
        {
            var file = PascalInterpreterTests.GetFile("PascalFunctionSelfCall.txt");

            DoesNotFail(file);
        }