/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }