private final ParseTreeNode parse ( ) throws ParserException { try { createActionStack ( ) ; return LRTokenStreamConverter . convert ( getTokenStream ( ) , getGrammar ( ) , actionStack ) ; } catch ( GrammarException e ) { logger . error ( e . getMessage ( ) , e ) ; throw new ParserException ( e . getMessage ( ) ) ; } }
This method does the actual parsing .