-
Notifications
You must be signed in to change notification settings - Fork 6
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
The library does not handle action (call the function in part 3 of the bison file) #31
Comments
Hi @leviettung200, the goal of pybison ist to combine bison and python. Best |
I'm seeking a Python, Java, JS, or C# solution that allows C code in the grammar actions. Can you give me any other suggestions? |
Python-wise, it is relatively easy to write C-extensions. So, if C-code in the grammar actions is necessary for your solution, with an python-api I would try plain bison (instead of pybison) to generate the parser itself and write an python C-extension as an entrypoint for the resulting parser. |
Can you please describe the process in greater detail? If at all possible, I'd prefer my solution to avoid having to modify the parser file (using flex and bison files directly). My specific problem was migrating input file parsing from on-premise to the Azure Function App |
My bison file contains the action in Grammar rules.
This action will call the functions declared at the end of the bison.
However your library doesn't handle it, what can I do to fix it?
Functions declared at the end of the bison file are necessary for business logic.
Sample Grammar rule:
Sample c code(function):
The text was updated successfully, but these errors were encountered: