-
Notifications
You must be signed in to change notification settings - Fork 25
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
ogma-core
: Handle CoCoSpec's ZtoPre
and YtoPre
unary operators
#86
Comments
Change Manager: Confirmed that the issue exists. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for Ogma 1.(0+X).(8+Y). Fix assigned to: @ivanperez-keera. |
Ogma cannot handle CoCoSpec boolean specifications containing the unary operators ZtoPre or YtoPre. This makes some of the specifications produced by FRET not parseable. This commit modifies the CoCoSpec grammar to include two new unary operators: ZtoPre and YtoPre.
Ogma cannot handle CoCoSpec boolean specifications containing the unary operators ZtoPre or YtoPre. This makes some of the specifications produced by FRET not parseable. The CoCoSpec grammar has been extended with two new unary operators ZtoPre and YtoPre. This commit updates the translator from CoCoSpec to Copilot so that it assigns a Copilot construct to those new unary operators. The component spec and requirements db translators are updated to include the necessary Copilot definitions so that the code produced compiles without errors.
Implementor: Solution implemented, review requested. |
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
Ogma cannot handle CoCoSpec boolean specifications containing the unary operators
ZtoPre
orYtoPre
. This makes some of the specifications produced by FRET not parseable.Type
Additional context
None.
Requester
Method to check presence of bug
Compiling a specification with
ZtoPre
orYtoPre
in the CoCoSpec property produces an error message instead of a correct Copilot specification:$ ogma fret-component-spec --cocospec --fret-file-name fret-reqs-full.json fret-reqs-full.json: error: syntax error at line 1, column 7 before `('
Expected result
The execution above should produce a Copilot specification that translates
ZtoPre
to delay initialized toTrue
. If modified to useYtoPre
, the operator should be translated to a delay initialized toFalse
.Desired result
The execution above should produce a Copilot specification that translates
ZtoPre
to delay initialized toTrue
. If modified to useYtoPre
, the operator should be translated to a delay initialized toFalse
.Proposed solution
Modify CoCoSpec grammar to support
ZtoPre
andYtoPre
.Modify translator in
ogma-core
to perform the translation ofZtoPre
to a delay initialized toTrue
, andYtoPre
to a delay initialized toFalse
.Further notes
None.
The text was updated successfully, but these errors were encountered: