Ejemplo n.º 1
0
 internal void Clear()
 {
     SymbolTable.Clear();
     ProductionTable.Clear();
     charSetTable.Clear();
     dfa.Clear();
     lrStates.Clear();
     stack.Clear();
     inputTokens.Clear();
     Grammar = new GrammarProperties();
     groupStack.Clear();
     groupTable.Clear();
     Restart();
 }
Ejemplo n.º 2
0
 public Parser()
 {
     SymbolTable     = new SymbolList();
     dfa             = new FAStateList();
     charSetTable    = new CharacterSetList();
     ProductionTable = new ProductionList();
     lrStates        = new LRStateList();
     stack           = new Stack <Token>();
     ExpectedSymbols = new SymbolList();
     inputTokens     = new Queue <Token>();
     sysPosition     = new Position();
     CurrentPosition = new Position();
     Grammar         = new GrammarProperties();
     groupStack      = new Stack <Token>();
     groupTable      = new GroupList();
     Restart();
     IsTablesLoaded = false;
     TrimReductions = false;
 }