Skip to content
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

How to use a symbol table in lexer actions if they do not have access to the grammar/lexer/user_data ? #53

Open
mingodad opened this issue Jul 22, 2023 · 0 comments

Comments

@mingodad
Copy link
Contributor

While trying to use a symbol table for a grammar/parser I noticed that lexer/parser actions do not have access to the the grammar/parser/lexer/user_data to be able to get/set/find any user defined container for any purpose.

It seems that at least we'll need an extra parameter void *user_data to allow pass data to be used there.

Can an working example of a grammar using a symbol table be added ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant