X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Ftests%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FTransformation1.scl;fp=bundles%2Forg.simantics.scl.compiler%2Ftests%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FTransformation1.scl;h=0000000000000000000000000000000000000000;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hp=144b03155b913d85490c135810426bd5bd88233d;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation1.scl deleted file mode 100644 index 144b03155..000000000 --- a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation1.scl +++ /dev/null @@ -1,59 +0,0 @@ -import "StandardLibrary" -import "Minigraph" -import "MMap" as MMap - -consistsOf :: Integer -consistsOf = resource "consistsOf" -instanceOf :: Integer -instanceOf = resource "instanceOf" -areConnected :: Integer -areConnected = resource "areConnected" -from :: Integer -from = resource "from" -to :: Integer -to = resource "to" - -element :: Integer -element = resource "Element" -connection :: Integer -connection = resource "Connection" - -mapping relation MapDiagrams Integer Integer - -rule ElementsRule where - @when - MapDiagrams ?dA ?dB - - @from - Statement ?dA consistsOf ?elA - Statement ?elA instanceOf element - - @to - Statement ?dB consistsOf ?elB - Statement ?elB instanceOf element - - @where - MapElements ?elA ?elB - -rule ConnectionsRule where - @when - MapElements ?elA1 ?elB1 - MapElements ?elA2 ?elB2 - - @from - Statement ?elA1 areConnected ?elA2 - - @to - Statement ?conn instanceOf connection - Statement ?conn from ?elB1 - Statement ?conn to ?elB2 - -foo :: () -foo = transformation OneShotForward where - MapDiagrams 0 0 - -main = withGraph do - foo - "OK" --- -OK