示例#1
0
文件: Parser.cs 项目: bartwe/plukc
 public void BeginLookahead()
 {
     Require.False(lookaheadEnabled);
     lookaheadEnabled = true;
     lookahead.Clear();
 }
示例#2
0
文件: Parser.cs 项目: bartwe/plukc
 public void Fail()
 {
     Require.False(lookaheadEnabled);
     throw new CompilerException(CurrentToken, string.Format(Resource.Culture, Resource.UnexpectedToken, CurrentToken.Token, Expected(expected)));
 }