1. tufts-ceeo
  2. Untitled project
  3. botspeak-python

Overview

HTTPS SSH
Botspeak Gammar in Extended Backus-Naur Form (EBNF) (http://en.wikipedia.org/wiki/Extended_Backus-Naur_Form)

<comment>  ::= from # to end-of-line
<reserved> ::= IF | GOTO | WAIT | ADD | SUB | DIV | MUL 
  | SETVAR | GETVAR | LBL | SCRIPT | ENDSCRIPT
  | RUN | ABORT | SYSTEM | DEBUG
<ident>  ::= letter, {letter | digit} except <reserved>
<k>      ::= <decimal-literal>
<compop> ::= < | > | <= | >= | != | ==
<array>  ::= <ident>"["(<k> | <ident>)"]"
<value>  ::= <k> | <ident> | <array>
<instr>  ::= IF "("<value> <compop> <value>")" <instr> except IF
  | GOTO <value>
  | WAIT <value>
  | ADD <value>","<value>
  | SUB <value>","<value>
  | DIV <value>","<value>
  | MUL <value>","<value>
  | SETVAR <value>","<value>
  | GETVAR <value>","<value>
  | LBL <ident>
  | RUN [SCRIPT"["<value>"]"]
  | ABORT [SCRIPT"["<value>"]"]
  | DEBUG
<line>    ::= (<instr> | <comment>),end-of-line
<program> ::= SCRIPT {<line> | (<comment>} ENDSCRIPT,end-of-line

TBD: SYSTEM, RUN&WAIT

See https://sites.google.com/site/botspeak/ for more info.