A Toy Programming Language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
409B

  1. #lang brag
  2. tA-program : tA-start tA-blank tA-accept tA-state-set
  3. tA-start : "@" tA-state-id
  4. tA-blank : "%" tA-symbol
  5. tA-accept : "!" tA-state-id
  6. tA-state-set : tA-state (tA-state)*
  7. tA-state : ":" tA-state-id tA-tran-set
  8. tA-tran-set : (tA-tran)* (NL)*
  9. tA-tran : tA-symbol "~" tA-symbol tA-dir tA-state-id (NL)*
  10. tA-symbol : TA-STRING
  11. tA-state-id : TA-STRING
  12. tA-dir : "<" | ">"