ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/antlr/CharScanner.hpp
(Generate patch)

Comparing:
trunk/src/antlr/CharScanner.hpp (file contents), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/development/src/antlr/CharScanner.hpp (file contents), Revision 1633 by gezelter, Thu Sep 15 13:39:36 2011 UTC

# Line 5 | Line 5
5   * Project led by Terence Parr at http://www.jGuru.com
6   * Software rights: http://www.antlr.org/license.html
7   *
8 < * $Id: CharScanner.hpp,v 1.1 2005-12-02 15:38:02 tim Exp $
8 > * $Id$
9   */
10  
11   #include <antlr/config.hpp>
# Line 121 | Line 121 | class ANTLR_API CharScanner : public TokenStream { (pu
121                  inputState->getInput().commit();
122          }
123  
124 +        /** called by the generated lexer to do error recovery, override to
125 +         * customize the behaviour.
126 +         */
127 +        virtual void recover(const RecognitionException& ex, const BitSet& tokenSet)
128 +        {
129 +                consume();
130 +                consumeUntil(tokenSet);
131 +        }
132 +
133          virtual void consume()
134          {
135                  if (inputState->guessing == 0)

Comparing:
trunk/src/antlr/CharScanner.hpp (property svn:keywords), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/development/src/antlr/CharScanner.hpp (property svn:keywords), Revision 1633 by gezelter, Thu Sep 15 13:39:36 2011 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines