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); }
public object Visit(IcmpExpression icmpExpression) { return(null); }