示例#1
0
 private Token StringLit()
 {
     Lexer l = new Lexer();
     Console.WriteLine("StringLit at " + l.GetPos());
     return new Token();
 }
示例#2
0
 public static void Main()
 {
     Lexer l = new Lexer();
     l.Scan("34");
     // When I run l.Scan("34");
     // It gives output of Digit: 3 (which I dont want cause its 34 not 3)
     // And the correct output of Digit: 34 (which I want)
     // How do I make it only give Digit: 34 and not Digit: 3
 }