コード例 #1
0
        public void BooleanParse()
        {
            var file = PascalInterpreterTests.GetFile("PascalBoolean.txt");

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

            var table = CheckSyntax(input);

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

            DoesNotFail(file);
        }