-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] provide state stack, like in flex [sf#20] #155
Comments
Commented by lsf37 on 2007-07-29 00:52 UTC Hi John, these two should already be supported if you use the file skeleton.nested as skeleton file for the spec (see also the command line options or the build options of jflex itself). Cheers, |
Commented by jafl on 2007-07-30 19:49 UTC Actually, skeleton.nested provides a stream stack, not a state stack. I will work on implementing a similar skeleton for states, and send it to you. |
Commented by jafl on 2007-07-30 20:28 UTC |
Commented by jafl on 2007-07-30 20:28 UTC I have the state stack working. |
Commented by lsf37 on 2007-08-01 22:30 UTC Thanks, you're right, of course. |
Updated by lsf37 on 2007-08-01 22:30 UTC
|
Commented by jafl on 2007-08-03 22:48 UTC My suggestion would be to include the state stack in the default skeleton. The patch is very minor and very useful :) |
Reported by jafl on 2007-07-28 00:00 UTC
flex provides yy_push_state(int new_state) and yy_pop_state() and yy_top_state().
These are very useful when one wishes to reuse a state from several other states. The re-used state calls yy_pop_state() instead of BEGIN().
The text was updated successfully, but these errors were encountered: