I need hep to understand what is the content in basic_state_machine::_table.
While trying to dump the parser/lexer for grammars with parsertl/lexertl I found this function parsertl::serialise::save and I'm using it to base my variant that save to SQL, using the chapel grammar (that can be seem here https://mingodad.github.io/parsertl-playground/playground/, select Chapel parser from examples, then select Grammar parser state machine from Debug mode: and click Parser to see the grammar state machine dump) where there is 1284 states and several states seems to have huge number of entries in basic_state_machine::_table like the states 1282 and 1283 having 73 entries but when looking at the above mentioned dump there is only one entry there.
Sorry, I don't have time to wade through enormous brain dumps like this. If you can locate and bug and produce a minimal example that shows it, I will have a look.
I need hep to understand what is the content in
basic_state_machine::_table
.While trying to dump the parser/lexer for grammars with
parsertl/lexertl
I found this functionparsertl::serialise::save
and I'm using it to base my variant that save toSQL
, using thechapel
grammar (that can be seem here https://mingodad.github.io/parsertl-playground/playground/, selectChapel parser
from examples, then selectGrammar parser state machine
fromDebug mode:
and clickParser
to see the grammar state machine dump) where there is 1284 states and several states seems to have huge number of entries inbasic_state_machine::_table
like the states 1282 and 1283 having 73 entries but when looking at the above mentioned dump there is only one entry there.This is the code used to generate the
SQL
inparsertl::serialise
:PS.: edited
parser_sm_states_entries
table replacingrule
bytoken
.