[kelbt-users] [feature proposal] autocommit mode
Elijah Epifanov
elijah.epifanov at gmail.com
Mon Jan 12 20:02:54 UTC 2009
There's no need to delay commit when parsing an unambiguous language,
therefore every rule will need (if efficiency is of concern) to commit
after reduce.
It would be convenient to set an auto-commit mode on on per-grammar
basis and (rarely, if at all) disable it for specific portions when
needed.
%%
# Second level supports multiplication.
F: tok_number tok_mult F commit try { ... };
F: tok_number commit try { ... );
};
%%
->
%%
autocommit;
# Second level supports multiplication.
F: tok_number tok_mult F try { ... };
F: tok_number try { ... };
%%
More information about the kelbt-users
mailing list