public void Convert(compilation_unit cu)
        {
            try
            {
				cu.visit(this);
            }
            catch(Exception e)
            {
            	//System.Diagnostics.Debug.WriteLine(e.StackTrace);
            }
        }
Esempio n. 2
0
 public Dictionary<syntax_tree_node, string[]> Bind(compilation_unit cu, string Text)
 {
     this.Text = Text;
     string[] lines = Text.Split('\n');
     line_lens = new int[lines.Length];
     for (int i = 0; i < lines.Length; i++)
     {
         if (i > 0)
             line_lens[i] = lines[i].Length + line_lens[i-1] + 1;
         else
             line_lens[i] = lines[i].Length + 1;
     }
     cu.visit(this);
     return comment_table;
 }