Paste number 35876: examples

Paste number 35876: examples
Pasted by: bjoern_
When:5 years, 3 months ago
Share:Tweet this! | http://paste.lisp.org/+ROK
Channel:#swhack
Paste contents:
Raw Source | XML | Display As
Grammar: (Combine (Combine (Group a b) c) d)
Input: c d a b;

  c ::-> (Choice (Combine d (Group a b)) Empty)
  d ::-> (Choice (Group a b) Empty)
  a ::-> b
  b ::-> Empty

Input a b c d

  a ::-> (Group b (Choice Empty (Combine c d)))
  b ::-> (Choice Empty (Combine c d))
  c ::-> (Choice Empty d)
  d ::-> Empty

Input d a b c

  d ::-> (Choice Empty (Combine (Group a b) c))
  a ::-> (Group b (Choice Empty d))
  b ::-> (Choice Empty d)
  c ::-> Empty

Grammar (Combine (Combine (Combine a b) c) d)
Input: d a

  d ::-> (Choice (Combine (Combine a b) c) Empty)
  a ::-> (Choice (Combine b c) Empty)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.