Skip to content

Instantly share code, notes, and snippets.

@ichiban
Created July 2, 2016 08:08
Show Gist options
  • Save ichiban/259231d30a79c8716ac4e39fa9c66c8c to your computer and use it in GitHub Desktop.
Save ichiban/259231d30a79c8716ac4e39fa9c66c8c to your computer and use it in GitHub Desktop.
$ echo '<n' | ./bnf
>>> "<"
<<< "<"
>>> upper case char
^^^ upper case char
>>> lower case char
<<< lower case char
>>> upper case char
^^^ upper case char
>>> lower case char
^^^ lower case char
>>> digit
^^^ digit
>>> upper case char
^^^ upper case char
>>> lower case char
^^^ lower case char
>>> digit
^^^ digit
>>> ">"
^^^ ">"
let rec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment