Skip to content

Commit

Permalink
more examples and cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
gigasquid committed Jun 3, 2013
1 parent 0b103da commit 5c5d555
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -437,6 +437,23 @@ or run the standalone shell script

./bin/babar.sh

## Examples
There are a couple of examples to get you going with playing with it.
To run the examples:

- launch a repl using 'lein run' or './bin/babar.sh'

At the babar repl prompt

read "./examples/simple.babar"


There is also a "speech_acts.babar". The program has the speak-config
set to true. This will work fine if you have a mac, just turn it to
false if you are on another system.

Have fun!

## TESTS

lein midje
Expand Down
2 changes: 1 addition & 1 deletion bin/babar.sh
@@ -1 +1 @@
java -jar babar-0.1.0-SNAPSHOT-standalone.jar
java -jar ./bin/babar-0.1.0-SNAPSHOT-standalone.jar
9 changes: 0 additions & 9 deletions examples/simple.clj

This file was deleted.

10 changes: 10 additions & 0 deletions examples/speech_acts.babar
@@ -0,0 +1,10 @@
speak-config true.
assert sunny false.
convince #nice-day "It is a nice day." fn [] = sunny true.
request *open-window when #nice-day fn [] println "Opened the window".
sleep 10.
query request-is-done *open-window?

assert sunny true.
sleep 10.
query request-is-done *open-window?

0 comments on commit 5c5d555

Please sign in to comment.