示例#1
0
 public TerminalNfaTransition(AtomTerminal terminal, NfaState target)
     : base(target)
 {
     Terminal = terminal;
 }
示例#2
0
 private static DfaState MakeAutomaton(AtomTerminal terminal)
 {
     return(DfaState.Inner().AddTransition(terminal, DfaState.Final()));
 }
示例#3
0
 public DfaTransition(AtomTerminal terminal, DfaState target)
 {
     Target   = target;
     Terminal = terminal;
 }
示例#4
0
 public TerminalLexerRule(AtomTerminal terminal, TokenName tokenName)
     : base(MakeAutomaton(terminal), tokenName)
 {
     Terminal = terminal;
 }
示例#5
0
 public TerminalLexerRule(AtomTerminal terminal)
     : this(terminal, terminal.ToString())
 {
 }
示例#6
0
 public TerminalLexerRule(AtomTerminal terminal, string tokenTypeId)
     : this(terminal, new TokenName(tokenTypeId))
 {
 }
示例#7
0
 public void AddTransition(AtomTerminal terminal, NfaState target)
 {
     AddTransition(new TerminalNfaTransition(terminal, target));
 }
示例#8
0
 public DfaState AddTransition(AtomTerminal terminal, DfaState target)
 {
     this._transitions.Add(new DfaTransition(terminal, target));
     return(this);
 }