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