From b3e7c9c3ef68a64e07539dd39ee98017a0ca7a44 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 28 Oct 2018 17:11:49 -0400 Subject: [PATCH] add example baconscript file, with documentation --- README.md | 10 ++++++---- example.bs | 10 ++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 example.bs diff --git a/README.md b/README.md index b3272bb..6784dd1 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,14 @@ Edit `server.cfg` to the correct values for your Hog4. $ ./comment.py Adding Hog device at net# 1 comment# GL1 -(macro GL - (target - (number 1))) Go on List 1 comment# exit -Goodbye. +``` + +Run a baconscript file by passing the script file to `comment.py` as standard input. + +```bash +$ ./comment.py < example.bs ``` ## Developing diff --git a/example.bs b/example.bs new file mode 100644 index 0000000..aeee18a --- /dev/null +++ b/example.bs @@ -0,0 +1,10 @@ +GM* +GM1:AM2:HM3 +RM* +RA +FM1/50 +FGM20 +GL1/5 +AS3 +RK2 +CP+