Skip to content

Commit

Permalink
Merge pull request #744 from mrryanjohnston/main
Browse files Browse the repository at this point in the history
Add language CLIPS, add structures Facts and Rules to CLIPS 6.4.1
  • Loading branch information
geekygirlsarah authored Oct 5, 2024
2 parents f3f6408 + c6b3763 commit b28e04b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
20 changes: 20 additions & 0 deletions web/thesauruses/_meta/rules_facts.json
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"
}
}
}
32 changes: 32 additions & 0 deletions web/thesauruses/clips/641/rules_facts.json
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"
}
}
}

2 changes: 2 additions & 0 deletions web/thesauruses/meta_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"c": "C",
"cpp": "C++",
"csharp": "C#",
"clips": "CLIPS",
"clojure": "Clojure",
"go": "Go",
"haskell": "Haskell",
Expand Down Expand Up @@ -37,6 +38,7 @@
"lists": "Lists, Arrays, and Hashed Lists",
"operators": "Logical and Mathematical/Arithmetic Operators",
"queues_stacks": "Queues and Stacks",
"rules_facts": "Rules and Facts",
"strings": "Strings"
}
}

0 comments on commit b28e04b

Please sign in to comment.