Guest User

Untitled

a guest
Mar 17th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;; Sample entry
  2. ;;; *************************
  3. ;;; Number: 10
  4. ;;;
  5. ;;; String: Foo
  6.  
  7. (def ^:const my-grammar
  8.     "Obfuscated sample of my grammar"
  9.     "entry      = start num <nl> str
  10.      start      = #'\\*+' <nl>
  11.      num        = <'Number: '> #'[\\d]+' <nl>
  12.      str        = <'String: '> #'.+' <nl>
  13.      nl         = '\\n'
  14. ")
Advertisement
Add Comment
Please, Sign In to add comment