Skip to content

Instantly share code, notes, and snippets.

@KrisShannon
Created January 11, 2012 04:44
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 KrisShannon/1593074 to your computer and use it in GitHub Desktop.
Save KrisShannon/1593074 to your computer and use it in GitHub Desktop.
LTM Backtracking Hell
grammar LTM-Hell {
rule TOP { [ <a> | <b> ] }
token a { [ xxxxx { fail } | xxx {} xx ] }
token b { [ xxxx {} x ] }
}
say LTM-Hell.parse('xxxxx').perl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment