Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paniq/307e8a6420668b87fcde15a71a4edddc to your computer and use it in GitHub Desktop.
Save paniq/307e8a6420668b87fcde15a71a4edddc to your computer and use it in GitHub Desktop.
# this
(x y z label: a = 1, b = 2, c = 3)
# does not produce this
(x y z (label ((a = 1) (b = 2) (c = 3))))
# but this (`:` has no knowledge of its left hand part)
(x y z label ((a = 1) (b = 2) (c = 3)))
# and this
(x y,z label: a = 1, b = 2, c = 3)
# does not produce this
((x y) (z (label ((a = 1) (b = 2) (c = 3)))))
# but this (the last term after `,` is closed by parentheses, end of block, `;` or `:`)
((x y) (z label) ((a = 1) (b = 2) (c = 3)))
# and this
(x: y,z label: a = 1, b = 2, c = 3; q)
# does not produce this
(x (y (z (label (a = 1, b = 2, c = 3)))) q)
# but this (same as above)
((x (y (z label) ((a = 1) (b = 2) (c = 3)))) q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment