Package antlr

Class ParseTree

    • Constructor Detail

      • ParseTree

        public ParseTree()
    • Method Detail

      • getLeftmostDerivationStep

        public java.lang.String getLeftmostDerivationStep​(int step)
        Walk parse tree and return requested number of derivation steps. If steps <= 0, return node text. If steps == 1, return derivation string at step.
      • getLeftmostDerivation

        public java.lang.String getLeftmostDerivation​(int maxSteps)
      • getLeftmostDerivation

        protected abstract int getLeftmostDerivation​(java.lang.StringBuffer buf,
                                                     int step)
        Get derivation and return how many you did (less than requested for subtree roots.
      • initialize

        public void initialize​(int i,
                               java.lang.String s)
        Specified by:
        initialize in interface AST
        Specified by:
        initialize in class BaseAST