fork download
  1. <fun defs> → {<fun def>}+
  2. <fun def> → "(" "define" <fun header> <exp> ")"
  3. <fun header> → "(" <fun name> <parameter list> ")"
  4. <fun name> → <id>
  5. <parameter list> → {<id>}
  6. <exp> → <id> | <int> | <float> | <floatE> | <list exp>
  7. <list exp> → "(" <list exp inside> ")"
  8. <list exp inside> → "if" <exp> <exp> <exp> | "cond" <cases> | <fun op> { <exp> }
  9. <cases> → {<case exp>}+
  10. <case exp> → "(" ( "else" | <exp> ) <exp> ")"
  11. <fun op> → <id> | <arith op> | <bool op> | <comp op>
  12. <arith op> → + | − | * | /
  13. <bool op> → "and" | "or" | "not"
  14. <comp op> → "<" | "<=" | ">" | ">=" | "="
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty