Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ; A thing:
  2. 'a
  3. ; Some things:
  4. '*b
  5. ; A thing with criteria:
  6. '(int? c)
  7. ; Some things with criteria:
  8. '(int? *d)
  9. ; At least x things, no more than y things:
  10. '(true *f (x y))
  11. ; x to y things, with criteria:
  12. '(int? *f (x y))
  13. ; A sub-pattern:
  14. '(sub g (sub-pattern here)) ; g ends up with the binding. Optional?
  15. ; x to y repetitions of the sub-pattern
  16. '(sub *g (x y) (sub-pattern))
  17. ; Back-reference to 'a:
  18. '(back h 'a)
  19. ; A thing or another thing
  20. '(or i '(sub-pattern) '(sub-pattern))
Add Comment
Please, Sign In to add comment