public void BeginLookahead() { Require.False(lookaheadEnabled); lookaheadEnabled = true; lookahead.Clear(); }
public void Fail() { Require.False(lookaheadEnabled); throw new CompilerException(CurrentToken, string.Format(Resource.Culture, Resource.UnexpectedToken, CurrentToken.Token, Expected(expected))); }