예제 #1
0
파일: Lexer.cs 프로젝트: MyPure/GameLexer
 public Lexer(string filePath)
 {
     this.filePath = filePath;
     buffer        = new StringBuilder(128);
     wordBox       = new TokenBox();
     tokens        = new List <Token>();
     wordBox.AddDFA(new ConstantDFA(), TokenType.Constant);
 }
예제 #2
0
파일: Lexer.cs 프로젝트: MyPure/GameLexer
 public void AddNotConstantWord(string token, TokenType wordType)
 {
     wordBox.AddDFA(new NotConstantDFA(token), wordType);
 }