예제 #1
0
 public abstract Token tokenize(Tokenizer tokenizer);
예제 #2
0
 public override bool tokenizable(Tokenizer t)
 {
     return(t.input.peek() == '"');
 }
예제 #3
0
 public abstract bool tokenizable(Tokenizer tokenizer);
예제 #4
0
 public override bool tokenizable(Tokenizer t)
 {
     return(isLetter(t.input));
 }
예제 #5
0
 public override bool tokenizable(Tokenizer t)
 {
     return(this.symbol == t.input.peek());
 }
예제 #6
0
 public override bool tokenizable(Tokenizer t)
 {
     return(String.Concat(t.input.peek(), t.input.peek(2)) == Environment.NewLine || t.input.peek().ToString() == Environment.NewLine);
 }
예제 #7
0
 public override Token tokenize(Tokenizer t)
 {
     return(new Token(t.input.Position, t.input.LineNumber,
                      "whitespace", t.input.loop(isWhiteSpace)));
 }
예제 #8
0
 public override bool tokenizable(Tokenizer t)
 {
     return(Char.IsWhiteSpace(t.input.peek()));
 }