Fix FlexDFA generation bug introduced in commit 166f431 with DFA.to_flex_dfa()
authorNick Downing <nick@ndcode.org>
Mon, 14 Jan 2019 02:13:39 +0000 (13:13 +1100)
committerNick Downing <nick@ndcode.org>
Mon, 14 Jan 2019 02:13:39 +0000 (13:13 +1100)
flex_dfa.py

index f6edd3d..61437fc 100644 (file)
@@ -2,7 +2,7 @@ class FlexDFA:
   YY_TRAILING_MASK = 0x2000
   YY_TRAILING_HEAD_MASK = 0x4000
 
-  def __init__( self, accept, acclist, entries, states):
+  def __init__( self, accept, acclist, states, entries):
     self.accept = accept
     self.acclist = acclist
     self.states = states