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

Grammar rework #2

Open
AlexanderKnueppel opened this issue Jan 25, 2023 · 0 comments
Open

Grammar rework #2

AlexanderKnueppel opened this issue Jan 25, 2023 · 0 comments

Comments

@AlexanderKnueppel
Copy link
Contributor

The grammar (+ checker and translator) are currently incomplete for the inteded task.

Main issue:

  • Keyword \old(...) does currently not exist (but is needed).

image

Other issues:

  • ...may arise when corresponding examples are constructed and show the current limitations of the grammar in place. The grammar is checked in class edu.kit.archicorc2.idl\src\edu\kit\archicorc2\idl\validation\CidlValidator.xtend

Envisioned solution:

Revise grammar + checker and translator. There exists a dedicated grammar package in ArchiCorC:

image

The .g4 file contains the antlr grammar. antlr is needed to generate the employed java code (currently, the visitor pattern is applied). There exists a shell script in the package with the right instructions:

image

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