Skip to content

Commit

Permalink
ogma-core: Add support to standalone backend for literal format. Refs n…
Browse files Browse the repository at this point in the history
…asa#204.

The diagram backend supports literal Copilot expressions, but that
capability is not yet available in the standalone backend.

This commit adds the capability by introducing a new expression pair or
property parsing/printing handler.
  • Loading branch information
ivanperez-keera committed Jan 20, 2025
1 parent 7dd46c5 commit a1b6a44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ogma-core/src/Command/Standalone.hs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ exprPair "cocospec" = ExprPair (CoCoSpec.pBoolSpec . CoCoSpec.myLexer)
(CoCoSpec.boolSpec2Copilot)
(CoCoSpec.boolSpecNames)
(CoCoSpec.BoolSpecSignal (CoCoSpec.Ident "undefined"))
exprPair "literal" = ExprPair Right
(\_ -> id)
id
(const [])
"undefined"
exprPair _ = ExprPair (SMV.pBoolSpec . SMV.myLexer)
(substituteBoolExpr)
(SMV.boolSpec2Copilot)
Expand Down

0 comments on commit a1b6a44

Please sign in to comment.