mozilla-spidermonkey / jsparagus

Experimental JS parser-generator project.
Other
447 stars 20 forks source link

Python backend: write epsilon transitions based on the target. #557

Closed nbp closed 4 years ago

nbp commented 4 years ago

The Rust backends depends on the split between shift-states and action-states, but this is not the case for python which can mix all of these in a dictionary.

Thus instead of relying on shift-count and action-count, just check the whether the target is an action-state or a shift-state.