Beispiel #1
0
 //コンストラクタ
 //第一引数は実際のコード。
 public Lexer(string code)
 {
     reader = new LexerReader(code);
     fileName = "No File(maybe interpreter)";
     beginnings.Push(0);
 }
Beispiel #2
0
 //コンストラクタ
 //第一引数は実際のコード、第二引数はファイル名(オプション)
 public Lexer(string code,string fname)
 {
     reader = new LexerReader(code);
     fileName = fname;
     beginnings.Push(0);
 }