[Jython-checkins] jython (2.5): Don't allow antlr error output for lexing errors either.

frank.wierzbicki jython-checkins at python.org
Fri Mar 30 21:17:23 CEST 2012


http://hg.python.org/jython/rev/581d909657b9
changeset:   6508:581d909657b9
branch:      2.5
parent:      6506:11f442c1e716
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Fri Mar 30 09:38:55 2012 -0700
summary:
  Don't allow antlr error output for lexing errors either.

files:
  grammar/Python.g |  7 ++++++-
  1 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/grammar/Python.g b/grammar/Python.g
--- a/grammar/Python.g
+++ b/grammar/Python.g
@@ -194,7 +194,7 @@
 
     @Override
     public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
-      // Do nothing. We record errors instead of printing them.
+        //Do nothing. We will handle error display elsewhere.
     }
 }
 
@@ -276,6 +276,11 @@
             }
         }
     }
+    @Override
+    public void displayRecognitionError(String[] tokenNames, RecognitionException e) {
+        //Do nothing. We will handle error display elsewhere.
+    }
+
 }
 
 //START OF PARSER RULES

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list