-
Notifications
You must be signed in to change notification settings - Fork 169
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 #744 from mrryanjohnston/main
Add language CLIPS, add structures Facts and Rules to CLIPS 6.4.1
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"meta": { | ||
"structure": "rules_facts", | ||
"structure_name": "Rules and Facts" | ||
}, | ||
"categories": { | ||
"Defining Rules": { | ||
"defining_rules": "Defining Rules" | ||
}, | ||
"Undefining Rules": { | ||
"undefining_rules": "Undefining Rules" | ||
}, | ||
"Asserting Facts": { | ||
"assert": "Asserting Facts" | ||
}, | ||
"Retracting Facts": { | ||
"retract": "Retracting Facts" | ||
} | ||
} | ||
} |
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,32 @@ | ||
{ | ||
"meta": { | ||
"language": "clips", | ||
"language_version": "6.4.1", | ||
"language_name": "CLIPS", | ||
"structure": "rules_facts" | ||
}, | ||
"concepts": { | ||
"defrule": { | ||
"code": [ | ||
"(defrule my-rule", | ||
" (my-fact ?value)", | ||
"=>", | ||
"(println \"My value: \" ?value))" | ||
], | ||
"name": "Creating a Defrule in the CLIPS environment" | ||
}, | ||
"undefrule": { | ||
"code": "(undefrule my-rule)", | ||
"name": "Deleting a Defrule from the CLIPS environment" | ||
}, | ||
"assert": { | ||
"code": "(assert (my-fact foo))", | ||
"name": "Assert Fact(s) into working memory" | ||
}, | ||
"retract": { | ||
"code": "(retract 1)", | ||
"name": "Retract existing Fact in working memory" | ||
} | ||
} | ||
} | ||
|
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