Exemple #1
0
        public Node def_list()
        {
            //Console.WriteLine("def_list");
            var def_list = new Def_list_();

            while (CurrentToken != TokenCategory.EOF)
            {
                //Console.WriteLine("aqui1");
                def_list.Add(def());
                //Console.WriteLine("aqui2");
            }
            //Console.WriteLine("aqui3");
            return(def_list);
        }
Exemple #2
0
        //def_list
        public string Visit(Def_list_ node, int modo)
        {
            Console.WriteLine("aqui2");
            var str = "";

            foreach (var global in global_vars)
            {
                str = str + "\t.field  public static  int64 '" + global + "'\n";
            }
            foreach (var n in node)
            {
                str = str + Visit((dynamic)n, 0);
            }
            return(str);
        }
Exemple #3
0
 //def_list
 public void Visit(Def_list_ node, int modo)
 {
     VisitChildren(node, modo);
 }