예제 #1
0
파일: bfc.cs 프로젝트: tingwei628/bfcs
 private bool isTerminals(Token_Enum token_type)
 {
     return
         (token_type == Token_Enum.Increment ||
          token_type == Token_Enum.Decrement ||
          token_type == Token_Enum.MoveRight ||
          token_type == Token_Enum.MoveLeft ||
          token_type == Token_Enum.Input ||
          token_type == Token_Enum.Output);
 }
예제 #2
0
파일: bfc.cs 프로젝트: tingwei628/bfcs
 public Token(Token_Enum token_Enum)
 {
     TokenType = token_Enum;
 }
예제 #3
0
파일: bfc.cs 프로젝트: tingwei628/bfcs
 public ASTNode(Token token)
 {
     TokenType = token.TokenType;
 }