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

Fetching Variables #33

Open
YAziani opened this issue Sep 29, 2017 · 0 comments
Open

Fetching Variables #33

YAziani opened this issue Sep 29, 2017 · 0 comments

Comments

@YAziani
Copy link

YAziani commented Sep 29, 2017

Excuse the amateurish question, but how could I fetch the value of variables I have declared within the source code of the ParseState-parameter of "ParseStatement"?

For example, if I run "ParseStatement" using my ParseState I have prepared with int x = 5; as a parameter of "LexInitParser", how could I get my hands on the value of x within the scope where I run ParseStatement?

I have tried iterating through pc->GlobalHashTable and pc->StringHashTable and searched my variable by checking entry->p.v.Key and entry->p.v.Val but couldn't find it.

Many thanks in advance.

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