예제 #1
0
        //--------------------------------------------------------------------------------
        // Literal Visitors Follow

        public string Visit(NLitBool nLitBool)
        {
            if (nLitBool.AnchorToken.Lexeme == "true")
            {
                return("\t\tldc.i8 1\n");
            }
            else
            {
                return("\t\tldc.i8 0\n");
            }
        }
예제 #2
0
//------------------------------------------------------------
        public void Visit(NLitBool node)
        {
            Console.WriteLine($"+++++++++++++++ NLitBool ++++++++++++++++");
            Console.WriteLine($"RECIBI ESTE PEDO {node.AnchorToken.Lexeme}");
            if (node.AnchorToken.Lexeme == "true")
            {
                File.AppendAllText(lePatheo,
                                   @"ldc.i4.1
        ");
            }

            else
            {
                File.AppendAllText(lePatheo,
                                   @"ldc.i4.0
        ");
            }


            //VisitChildren(node);
        }
예제 #3
0
//------------------------------------------------------------
        public void Visit(NLitBool node)
        {
            Console.WriteLine($"+++++++++++++++ NLitBool ++++++++++++++++");

            //VisitChildren(node);
        }
        //--------------------------------------------------------------------------------
        // Literal Visitors Follow

        public void Visit(NLitBool nLitBool)
        {
            // Do nothing
        }