示例#1
0
 public int MatchSingleBlock(
     int Index, ArrayList<KToken> TokenList, int BeginIdx, int EndIdx, int ParseOption) {
   if (BeginIdx == -1) return -1;
   if (BeginIdx < EndIdx) {
     KToken Token = TokenList.get(BeginIdx);
     if (Token.ResolvedSyntax.equals("{}")) {
       SetAtNode(Index, ParseGroup(NodeNameSpace, Token, AllowEmpty | CreateNullNode));
       return BeginIdx + 1;
     }
     return MatchExpression(Index, TokenList, BeginIdx, EndIdx, ParseOption);
   }
   return ReportExpectedAfter(TokenList, BeginIdx, EndIdx, "{", ParseOption);
 }