Skip to content

Instantly share code, notes, and snippets.

@dminuoso

dminuoso/foo.rb Secret

Created March 8, 2018 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/a6acd89852a95f094dfa47e9772676af to your computer and use it in GitHub Desktop.
Save dminuoso/a6acd89852a95f094dfa47e9772676af to your computer and use it in GitHub Desktop.
phone =
number >-> ac {
seperator >>
number >-> no {
ret PhoneNumber.new(ac, no)
}}
name =
string >-> first {
string >-> last {
ret Person.new(first, last)
}}
entry =
name >-> p {
many[phone] >-> nos {
ret [p, nos]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment