//-------------------------------------------------------------------------------- // 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"); } }
//------------------------------------------------------------ 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); }
//------------------------------------------------------------ public void Visit(NLitBool node) { Console.WriteLine($"+++++++++++++++ NLitBool ++++++++++++++++"); //VisitChildren(node); }
//-------------------------------------------------------------------------------- // Literal Visitors Follow public void Visit(NLitBool nLitBool) { // Do nothing }