Small bug with #pop handling

Issue #296 resolved
Former user created an issue

The following sample lexer fails with the error: KeyError: -1

(try it with "xxtt") The attached patch fixes that.

=== tokens = { 'root' : [ (r'x', Generic, 't1'), (r'y', Generic, 't2'), ], 't1' : [ (r'x', Generic, ('#pop', 't2', 't2')), ], 't2' : [ (r't', Generic, '#pop'), ], } ===

Reported by guest

Comments (2)

  1. Log in to comment