protected Automata(AutomataManager manager) { if (manager == null) { throw new ArgumentNullException(nameof(manager)); } }
public ParserAutomata(AutomataManager manager) : base(manager) { //_parser = parser; var grammar = Grammar.Get <TGrammar, TToken>(); foreach (var parserRule in grammar.ParserRules) { RegisterParserRule(parserRule); } }
public LexerAutomata(AutomataManager manager) : base(manager) { var grammar = Grammar.Get <TGrammar, TToken>(); foreach (var tokenFragment in grammar.TokenFragments) { RegisterLexerFragment(tokenFragment); } foreach (var tokenRule in grammar.TokenRules.OrderByDescending(r => r.TokenCode)) { RegisterLexerRule(tokenRule); } BuildStates(); }
protected ParserAutomataBase(AutomataManager manager) : base(manager) { }