Class TreePatternLexer


  • public class TreePatternLexer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ARG  
      static int BEGIN  
      protected int c
      Current char
      static int COLON  
      static int DOT  
      static int END  
      static int EOF  
      boolean error  
      static int ID  
      protected int n
      How long is the pattern in char?
      protected int p
      Index into input string
      protected java.lang.String pattern
      The tree pattern to lex like "(A B C)"
      static int PERCENT  
      java.lang.StringBuffer sval
      Set when token type is ID or ARG (name mimics Java's StreamTokenizer)
    • Constructor Summary

      Constructors 
      Constructor Description
      TreePatternLexer​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void consume()  
      int nextToken()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreePatternLexer

        public TreePatternLexer​(java.lang.String pattern)
    • Method Detail

      • nextToken

        public int nextToken()
      • consume

        protected void consume()