Beispiel #1
0
        //-----------------------------------------------------------
        public string Visit(SmallerEq node, Table table)
        {
            string label = GenerateLabel();

            return(String.Format(

                       "\t\tldc.i4.1\n"
                       + "{1}{2}"
                       + "\t\tble {0}\n"
                       + "\t\tpop\n"
                       + "\t\tldc.i4.0\n"
                       + "\t\t{0}:\n",
                       label,
                       Visit((dynamic)node[0], table),
                       Visit((dynamic)node[1], table)));
        }
 //-----------------------------------------------------------
 private Type Visit(SmallerEq node, Table table)
 {
     VisitBinaryOperator("<=", node, Type.INTEGER, table);
     return(Type.BOOLEAN);
 }