public bool Match(TokenKindSymbol tokKind) { if (!CurrentIsKind(tokKind)) { error(this.Current, this.Current.ToCode() + "不正确,应该是" + LexTokenSymbol.GetTextByKind(tokKind)); return(false); } else { MoveNext(); return(true); } }
public ExpUnary(ContextExp expContext, LexTokenSymbol token, Exp rightExp) : base(expContext) { OpToken = token; RightExp = rightExp; }