예제 #1
0
 private static bool type()
 {
     Token.Type tokenType = Tokens.GetToken().type;
     if (tokenType != Token.Type.TypeKeyword && tokenType != Token.Type.Identifier)
     {
         return(false);
     }
     currentType = Tokens.GetToken().lexeme;
     if (semanticPass)
     {
         SemanticActions.tPush(Tokens.GetToken(), scope);
     }
     return(true);
 }