예제 #1
0
        StoreStatement ParseStoreInstruction()
        {
            var expr = new StoreStatement();

            AcceptElement(Token.Store);

            expr.ExprType = ParseType();
            expr.Value    = ParseExpression();
            AcceptElement(Token.Comma);

            expr.Type = ParseType();

            expr.PtrExpr = ParseExpression();

            if (PeekElement().Type == Token.Comma)
            {
                AcceptElement(Token.Comma);
                AcceptElement(Token.Align);
                AcceptElement(Token.IntegerLiteral);
            }

            if (PeekElement().Type == Token.Comma)
            {
                AcceptElement(Token.Comma);
                AcceptElement(Token.Exclamation);
                AcceptElement(Token.Symbol);
                AcceptElement(Token.Exclamation);
                AcceptElement(Token.IntegerLiteral);
            }

            return(expr);
        }
예제 #2
0
 public object Visit(StoreStatement storeStatement)
 {
     return(null);
 }