-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from matheuslenke/fix/F01-fix-relations
[Fix] Fix relations syntax
- Loading branch information
Showing
38 changed files
with
1,568 additions
and
1,140 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"version": "2.0.0", | ||
|
||
"tasks": [ | ||
{ | ||
"label": "watch langium", | ||
"hide": false, | ||
"type": "shell", | ||
"command": "npm run langium:watch", | ||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/packages/tonto", | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
} | ||
}, | ||
{ | ||
"label": "watch tonto", | ||
"type": "shell", | ||
"command": "npm run watch", | ||
"hide": false, | ||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/packages/tonto" | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
} | ||
}, | ||
{ | ||
"label": "watch extension", | ||
"type": "shell", | ||
"hide": false, | ||
"command": "npm run watch", | ||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/packages/tonto-vscode" | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "always" | ||
} | ||
}, | ||
{ | ||
"label": "watch tpm", | ||
"type": "shell", | ||
"command": "npm run watch", | ||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}/packages/tonto-package-manager" | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
} | ||
}, | ||
{ | ||
"label": "watch workspace", | ||
"command": "npm run watch", | ||
"isBackground": true, | ||
"group": "build", | ||
"problemMatcher": "$tsc-watch", | ||
"runOptions": { | ||
"runOn": "folderOpen" | ||
}, | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "always" | ||
}, | ||
"detail": "npm run watch --workspaces" | ||
}, | ||
{ | ||
"label": "Watch all", | ||
"dependsOn": [ | ||
"watch langium", | ||
"watch tonto", | ||
"watch extension", | ||
"watch tpm" | ||
], | ||
"dependsOrder": "parallel", | ||
"group": "build", | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
], | ||
"isBackground": true, | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
}, | ||
|
||
// Test tasks | ||
{ | ||
"label": "test: tonto", | ||
"command": "npm run test", | ||
"isBackground": false, | ||
"options": { | ||
"cwd": "${workspaceFolder}/packages/tonto" | ||
}, | ||
} | ||
] | ||
} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package CheckGeneralizationConsistency | ||
kind Person | ||
role Doctor specializes Person | ||
package tokens | ||
|
||
relation Doctor -- treats -- Person | ||
kind B | ||
kind A { | ||
-- B | ||
} | ||
|
||
kind C { | ||
-- name -- B | ||
-- B | ||
-- [1] B | ||
[1..*] -- [1] B | ||
[1..*] -- A | ||
-- C.name | ||
} | ||
|
||
genset GeneralizationSet { | ||
general Person | ||
specifics Doctor.treats | ||
} |
Oops, something went wrong.