-
Notifications
You must be signed in to change notification settings - Fork 1
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 'develop' (#19) from develop into master
- Loading branch information
Showing
6 changed files
with
36 additions
and
8 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
builddir | ||
*.kb | ||
*.obk | ||
!examples/*.obk |
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,2 @@ | ||
# this is a comment | ||
fact("chris cromer" and "martin" and "Isabella" can "program" and "speak english"); |
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,19 @@ | ||
// an incomplete rule, this one stays false | ||
rule("chris" is "happy" if "chris" plays "playstation"); | ||
|
||
// a rule that gets inserted as true right away | ||
fact("this" is "madness"); | ||
rule("this" is "sparta" if "this" is "madness"); | ||
|
||
// a rule that is inserted as false then updated at a later stage | ||
rule("bruce" is "batman" if "the waynes" are "dead"); | ||
fact("the waynes" are "dead"); | ||
|
||
// an action that will be false because the fact doesn't exist, should return ignore | ||
action(if "tom" is "dangerous" then "avoid" else "ignore"); | ||
|
||
// an action that will be true, should return die | ||
action(if "this" is "sparta" then "die" else "live"); | ||
|
||
fact("what" is "love"); | ||
rule("baby" dont "hurt me" if "what" is "love"); |
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
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