public bool ISmatch(TINY_Token_Class ExpectedToken, int tk_index) { TINY_Token CurrentToken = new TINY_Token(); if (tk_index < TokenStream.Count) { CurrentToken = TokenStream[tk_index]; } if (CurrentToken.token_type == ExpectedToken) { return(true); } return(false); }
public Node match(TINY_Token_Class ExpectedToken) { TINY_Token CurrentToken = new TINY_Token(); if (tokenIndex < TokenStream.Count) { CurrentToken = TokenStream[tokenIndex]; } if (CurrentToken.token_type == ExpectedToken) { Node node = new Node(CurrentToken.lex); tokenIndex++; return(node); } return(null); }
public Node match(TINY_Token_Class ExpectedToken) { return(null); }