Пример #1
0
        private StmtRaw ParseStmtCallSingle()
        {
            ExpRaw      startExpr = ParseRawExpLine();
            StmtCallRaw stmtcall  = new StmtCallRaw();

            stmtcall.CallExp = startExpr;
            while (currLineTokenTape.HasCurrent)
            {
                if (currLineTokenTape.Current.IsKind(TokenKindSymbol.Comma))
                {
                    currLineTokenTape.Match(TokenKindSymbol.Comma);
                    break;
                }
                else if (currLineTokenTape.Current.IsKind(TokenKindSymbol.Semi))
                {
                    currLineTokenTape.Match(TokenKindSymbol.Semi);
                    break;
                }
            }
            return(stmtcall);
        }
Пример #2
0
 public StmtCall(StmtCallRaw raw, Stmt parentStmt)
 {
     Raw        = raw;
     ParentStmt = parentStmt;
 }