[pypy-commit] pypy py3.5: Fix @= not recognized by adding @ to dfa

raffael_t pypy.commits at gmail.com
Sun May 22 16:21:46 EDT 2016


Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5
Changeset: r84598:8d4fbbad6a2c
Date: 2016-05-22 22:21 +0200
http://bitbucket.org/pypy/pypy/changeset/8d4fbbad6a2c/

Log:	Fix @= not recognized by adding @ to dfa

diff --git a/pypy/interpreter/pyparser/dfa_generated.py b/pypy/interpreter/pyparser/dfa_generated.py
--- a/pypy/interpreter/pyparser/dfa_generated.py
+++ b/pypy/interpreter/pyparser/dfa_generated.py
@@ -21,7 +21,7 @@
      '0': 5, '1': 6, '2': 6, '3': 6,
      '4': 6, '5': 6, '6': 6, '7': 6,
      '8': 6, '9': 6, ':': 15, ';': 15,
-     '<': 10, '=': 14, '>': 9, '@': 15,
+     '<': 10, '=': 14, '>': 9, '@': 14,
      'A': 1, 'B': 2, 'C': 1, 'D': 1,
      'E': 1, 'F': 1, 'G': 1, 'H': 1,
      'I': 1, 'J': 1, 'K': 1, 'L': 1,
diff --git a/pypy/interpreter/pyparser/gendfa.py b/pypy/interpreter/pyparser/gendfa.py
--- a/pypy/interpreter/pyparser/gendfa.py
+++ b/pypy/interpreter/pyparser/gendfa.py
@@ -138,7 +138,7 @@
                            chainStr(states, "//"),
                            maybe(states, newArcPair(states, "="))),
                      chain(states,
-                           groupStr(states, "+-*/%&|^=<>"),
+                           groupStr(states, "+-*/%&|^=<>@"),
                            maybe(states, newArcPair(states, "="))),
                      newArcPair(states, "~"))
     bracket = groupStr(states, "[](){}")


More information about the pypy-commit mailing list