public static string Consume(this LexInput input, int len) { var sb = new StringBuilder(len); for (int i = 0; i < len; i++) { sb.Append(input.Consume()); } return(sb.ToString()); }
public Lexer(string input) { this.input = new LexInput(input, this.LexLValue, this.LexRValue); this.lexerState = this.input.LexValueState; }