4 /* ANTLR Translator Generator
5 * Project led by Terence Parr at http://www.jGuru.com
6 * Software rights: http://www.antlr.org/license.html
10 // ANTLR C# Code Generator by Micheal Jordan
11 // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
12 // Anthony Oguntimehin
16 using StringBuilder
= System
.Text
.StringBuilder
;
17 using AST
= antlr
.collections
.AST
;
19 public class ParseTreeToken
: ParseTree
21 protected IToken token
;
23 public ParseTreeToken(IToken token
)
28 protected override internal int getLeftmostDerivation(StringBuilder buf
, int step
)
31 buf
.Append(ToString());
32 return step
; // did on replacements
35 public override string ToString()
39 return token
.getText();
41 return "<missing token>";