-
Notifications
You must be signed in to change notification settings - Fork 44
ST6RI-846 Create EBNF / GBNF extractor tool for KerML and SysML specs #720
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
hpdekoning
wants to merge
50
commits into
master
Choose a base branch
from
ST6RI-846
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…needed part of README.md
…stems-Modeling/tool-support
…from MMS4 View Editor)
…rML EBNF and SysML EBNF & GBNF grammars in .txt and .html formats
… images (copied from Graphical-Specification-WG repo)
…les and updated structure and documentation
…and improved documentation
…nf_file_parser tool, that now completely implement the workflow described in the README documentation
…mmars for PR review
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create a BNF Extractor tool that can extract the BNF snippets from the KerML textual notation EBNF grammar and from the SysML textual notation EBNF and graphical notation GBNF grammars, and convert it to two target formats:
The adapted tool should be added under tool-support .
A new folder
bnf_grammar_toolshas been created undertool-support, with two new Python command line tools:bnf_grammar_processorandbnf_file_parser. In addition to the standard Python modules, three other open source packages have been used, that are all licensed under the MIT License:The README.adoc in subdirectory
bnf_grammar_toolscontains a full description on how to install and use the tools. A workflow to extract, validate and correct BNF grammars has been added.In terms of data used for testing, under further subdirectory
tests/KerML_and_SysML_spec_sourcesthe raw HTML files that were exported from the release 2025-04 versions of the KerML and SysML specs in View Editor are stored. They have been used to test the correctness of the implementation. Also, subdirectorytests/KerML_and_SysML_grammarscontains a complete set of all input files and generated output and log files. These illustrate how the tools can be used and how errors in the respective BNF grammars are detected and reported, and can be inspected for review. Also, BNF grammars before and after manual corrections can be compared, using a diff tool, to systematically compile mistakes to be raised as OMG RTF issues.