protected bool Equals(LexerAction other)
 {
     return Equals(ValueAction, other.ValueAction)
         && ModeActions.SequenceEqual(other.ModeActions)
         && Equals(EmitAction, other.EmitAction)
         && string.Equals(Code, other.Code);
 }
Ejemplo n.º 2
0
 protected bool Equals(LexerAction other)
 {
     return(Equals(ValueAction, other.ValueAction) &&
            ModeActions.SequenceEqual(other.ModeActions) &&
            Equals(EmitAction, other.EmitAction) &&
            string.Equals(Code, other.Code));
 }
 public LexerCodeGenerator(
     LexerSpec lexerSpec,
     IReadOnlyDictionary<Mode, State> modeMap,
     int errorState,
     IDictionary<int, int[]> planeOffsets,
     IList<Input> equivalenceTable,
     int[] rowMap,
     int[] transitions,
     int[] actionMap,
     LexerAction[] actions)
 {
     this.lexerSpec = lexerSpec;
     this.modeMap = modeMap;
     this.errorState = errorState;
     this.planeOffsets = planeOffsets;
     this.equivalenceTable = equivalenceTable;
     this.rowMap = rowMap;
     this.transitions = transitions;
     this.actionMap = actionMap;
     this.actions = actions;
 }