Esempio n. 1
0
        public TreeGenerator(ParsingTable parsingTable, List <SyntaxToken> tokens, Grammar grammar)
        {
            ParsingTable = parsingTable;
            Tokens       = tokens;
            Grammar      = grammar;


            position = 0;
            length   = Tokens.Count;
        }
Esempio n. 2
0
 public static void CreateParseTable()
 {
     if (parseTable == null)
     {
         parseTable = new ParsingTable(grammar);
     }
     else
     {
         return;
     }
     parseTable.createParsingTable(statesTransision);
 }