File: antlr-getEOFToken.patch

package info (click to toggle)
jython 2.7.2%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 62,676 kB
  • sloc: python: 640,908; java: 306,458; xml: 1,984; sh: 522; ansic: 126; makefile: 76
file content (27 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: ANTLR 3.2 doesn't have the getEOFToken() method
Index: jython/grammar/Python.g
===================================================================
--- jython.orig/grammar/Python.g
+++ jython/grammar/Python.g
@@ -261,7 +261,7 @@ private ErrorHandler errorHandler;
                     eofWhileNested = true;
                 }
                 // -- end Jython addition
-                return getEOFToken();
+                return Token.EOF_TOKEN;
             }
             try {
                 mTokens();
Index: jython/grammar/PythonPartial.g
===================================================================
--- jython.orig/grammar/PythonPartial.g
+++ jython/grammar/PythonPartial.g
@@ -138,7 +138,7 @@ private ErrorHandler errorHandler;
                     eofWhileNested = true;
                 }
                 // -- end Jython addition
-                return getEOFToken();
+                return Token.EOF_TOKEN;
             }
             try {
                 mTokens();