Skip to content

Instantly share code, notes, and snippets.

@marcioAlmada
Created August 21, 2015 21:16
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 marcioAlmada/0e7d080dd39826309bbe to your computer and use it in GitHub Desktop.
Save marcioAlmada/0e7d080dd39826309bbe to your computer and use it in GitHub Desktop.
--TEST--
Non delimited layer matching
--FILE--
<?php
macro {
(T_STRING·A ···rest) // matches a lisp form
} >> {
T_STRING·A(···rest)
}
(sum 1 (multiply 2 3))
?>
--EXPECTF--
<?php
sum(1 multiply(2 3))
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment