Skip to content

AASQL: Provide the grammar in EBNF form #449

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

Open
mhrimaz opened this issue May 7, 2025 · 2 comments
Open

AASQL: Provide the grammar in EBNF form #449

mhrimaz opened this issue May 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@mhrimaz
Copy link

mhrimaz commented May 7, 2025

What is missing?

The current AASQL grammar is provided as BNF. However, most tools out there (ANTLR, Lark, ..) support EBNF which requires some transformation. It would be more straightforward to provide the grammar in EBNF form. Ideally something that is compatible with ANTLR.

@mhrimaz mhrimaz added the enhancement New feature or request label May 7, 2025
@sebbader-sap
Copy link
Contributor

@mhrimaz can you make a proposal? Nobody in the community group is familiar with EBNF.

@mhrimaz
Copy link
Author

mhrimaz commented May 15, 2025

Usually it is better to use EBNF. First it is much shorter compared to BNF. Second, with little modification it can be compatible with grammar parsing tools out there. It is common to provide grammar in EBNF. See also XML, XPATH, and other places.

But in the end, you can some way or another, transform BNF to EBNF and make it suitable for your tooling. It is just a nice to have. Maybe you can consider this for the future iterations.

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

No branches or pull requests

2 participants