Skip to content

Commit

Permalink
add 2 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cromerc committed Mar 1, 2023
1 parent a91bc9b commit 97a91a0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/multi-fact.obk
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");
19 changes: 19 additions & 0 deletions examples/obelisk.obk
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");

0 comments on commit 97a91a0

Please sign in to comment.