Skip to content

Commit

Permalink
Merge branch 'add-showADL-Pairview' into feature/atlas-import
Browse files Browse the repository at this point in the history
  • Loading branch information
Svroozendaal committed Jul 3, 2024
2 parents ff418b7 + 418fce5 commit 513215c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AmpersandData/FormalAmpersand/Rules.adl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PATTERN Rules
RELATION urlEncodedName[Concept*EncodedName] [UNI]
RELATION origin[Rule*Origin] [UNI]
MEANING "The location where a rule is defined." -- e.g. 'line 367:10, file "C:\\\\Ampersand\\\\Workspace\\\\NRM\\\\NRM-BasicProcesses.adl"'
RELATION message[Rule*Message] -- e.g. 'bfOUprop[BusinessFunction] is not antisymmetric'
RELATION message[Rule*Markup] -- e.g. 'bfOUprop[BusinessFunction] is not antisymmetric'
-- RELATION srcConcept[Rule*Concept][UNI,TOT] -- e.g. 'BusinessFunction'
-- RELATION tgtConcept[Rule*Concept][UNI,TOT] -- e.g. 'BusinessFunction'
RELATION formalTerm[Rule*Term] [UNI]
Expand Down
2 changes: 1 addition & 1 deletion AmpersandData/FormalAmpersand/Rules.docadl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PURPOSE RELATION urlEncodedName[Rule*EncodedName]
{+ This is used to show a graphic +}
PURPOSE RELATION origin[Rule*Origin] -- Haskell: rrfps :: Rule->Origin
{+ The location on which a rule is defined is registered for tracing purposes. +}
PURPOSE RELATION message[Rule*Message] -- Haskell: rrmsg :: Rule->[Markup]
PURPOSE RELATION message[Rule*Markup] -- Haskell: rrmsg :: Rule->[Markup]
{+ User-specified violation messages are being registered to generate code for error messages.
There may be multiple messages to support multiple languages
+}
Expand Down
7 changes: 4 additions & 3 deletions AmpersandData/FormalAmpersand/Terms.adl
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ RELATION showADL[Term*ShowADL] [UNI] -- TODO should be TOT also, but this is TO
REPRESENT ShowADL TYPE BIGALPHANUMERIC
--HJI20161004: This execEngine rule doesn't work, because of the ';'-characters that may be in the ShowADL term
ROLE ExecEngine MAINTAINS "del unused ShowADL"
RULE "del unused ShowADL" : I[ShowADL] |- showADL[Term*ShowADL]~;showADL[Term*ShowADL]
MEANING "A ShowADL without Term will be removed."
RULE "del unused ShowADL" : I[ShowADL] |- (showADL[Term*ShowADL]~;showADL[Term*ShowADL]) \/ (showADL[PairView*ShowADL]~;showADL[PairView*ShowADL])
MEANING "A ShowADL without Term or PairView will be removed."
VIOLATION ( TXT "{EX}_;DelAtom_;ShowADL_;", SRC I )
VIEW Term : Term(showADL[Term*ShowADL])
VIEW Term : Term(showADL)
VIEW PairView : PairView(showADL)

{- I can't get the following to work... Grrr!
PATTERN "Type graph"
Expand Down
7 changes: 5 additions & 2 deletions src/Ampersand/FSpec/Transformers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,11 @@ transformersFormalAmpersand fSpec =
),
( "message",
"Rule",
"Message",
[] -- TODO
"Markup",
[ (dirtyId rul, dirtyId mrkup)
| rul :: Rule <- instanceList fSpec,
mrkup <- rrmsg rul
]
),
( "propertyRule",
"Relation",
Expand Down

0 comments on commit 513215c

Please sign in to comment.