Beispiel #1
0
        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());
        }
Beispiel #2
0
 public Lexer(string input)
 {
     this.input      = new LexInput(input, this.LexLValue, this.LexRValue);
     this.lexerState = this.input.LexValueState;
 }