示例#1
0
        IcmpExpression ParseIcmpExpression()
        {
            var stmt = new IcmpExpression();

            AcceptElement(Token.Icmp);
            stmt.Condition = AcceptElement(Token.Slt, Token.Sgt, Token.Sge, Token.Eq, Token.Ne, Token.Ult).Type;
            stmt.Type      = ParseType();

            stmt.Var = AcceptElement(Token.GlobalIdentifier, Token.LocalIdentifier).Data;
            AcceptElement(Token.Comma);
            stmt.Value = ParseExpression();
            return(stmt);
        }
示例#2
0
 public object Visit(IcmpExpression icmpExpression)
 {
     return(null);
 }