Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / antlr / ParseTreeToken.cs
blob54f3e8c442c9915b6d93261b99285e9fe3fd87db
1 namespace antlr
4 /* ANTLR Translator Generator
5 * Project led by Terence Parr at http://www.jGuru.com
6 * Software rights: http://www.antlr.org/license.html
7 */
9 //
10 // ANTLR C# Code Generator by Micheal Jordan
11 // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
12 // Anthony Oguntimehin
15 using System;
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)
25 this.token = token;
28 protected override internal int getLeftmostDerivation(StringBuilder buf, int step)
30 buf.Append(' ');
31 buf.Append(ToString());
32 return step; // did on replacements
35 public override string ToString()
37 if ( token != null )
39 return token.getText();
41 return "<missing token>";