Skip to content

Instantly share code, notes, and snippets.

@balazsgrill
Created January 14, 2014 19:59
Show Gist options
  • Save balazsgrill/8424619 to your computer and use it in GitHub Desktop.
Save balazsgrill/8424619 to your computer and use it in GitHub Desktop.
/* rule body with 0-* multiplicity */
pattern subRule0n(first: Token, next: Token){
first == next;
}or{
find subRule0n_content(first, t0);
find subRule0n(t0, next);
}
/* rule body with 1-* multiplicity */
pattern subRule0n(first: Token, next: Token){
find subRule0n_content(first, t0);
}or{
find subRule0n_content(first, t0);
find subRule0n(t0, next);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment