Skip to content

Instantly share code, notes, and snippets.

@SineSwiper
Created August 31, 2012 13:32
Show Gist options
  • Save SineSwiper/3552700 to your computer and use it in GitHub Desktop.
Save SineSwiper/3552700 to your computer and use it in GitHub Desktop.
multi rule declaration
sunday_morning: Im waking up | ( cant even focus on a coffee_cup )
coffee_cup: dont even know whos bed Im in
# Parser problems
lyric:
where
do
I
start
where
do
I
begin: / ( <WORD> ) /
# Works, but requires ;
lyric:
where
do
I
start
;
where
do
I
begin: / ( <WORD> ) /
# Might be a better route, since {} is never used in parser so far
lyric:
where
do
I
start
{ where do I begin }: / ( <WORD> ) /
@SineSwiper
Copy link
Author

Bah, the <!NAME!> form is backwards... The naming stuff needs to go in the rule_name part, but that section is more sensitive to symbols/changes. Need to think about that angle some more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment