Loyc.LLParserGenerator.StageOneParser.Parse C# (CSharp) Method

Parse() public method

public Parse ( ) : LNode
return LNode
		public LNode Parse()
		{
			var e = GrammarExpr();
			Match((int) EOF);
			#line 51 "StageOneParserGrammar.ecs"
			return e;
			#line default
		}
		protected LNode GrammarExpr()

Usage Example

Esempio n. 1
0
        void TestStage1Core(string text, LNode expected)
        {
            var   lexer     = ParsingService.Default.Tokenize(text, ConsoleMessageSink.Value);
            var   treeified = new TokensToTree(lexer, true);
            var   tokens    = treeified.Buffered();
            var   parser    = new StageOneParser(tokens, lexer.SourceFile, ConsoleMessageSink.Value);
            LNode result    = parser.Parse();

            AreEqual(expected, result);
        }
All Usage Examples Of Loyc.LLParserGenerator.StageOneParser::Parse