Skip to content

Instantly share code, notes, and snippets.

@simonask
Created February 10, 2009 09:39
Show Gist options
  • Save simonask/61327 to your computer and use it in GitHub Desktop.
Save simonask/61327 to your computer and use it in GitHub Desktop.
tIDENTIFIER = tNORMAL_IDENTIFIER | tOPERATOR_IDENTIFIER
tNORMAL_IDENTIFIER = [\w][\w\d*]*
tOPERATOR_IDENTIFIER = [\+\-\*\/\\]*
tOPERATOR_CALL = tIDENTIFIER tIDENTIFIER tIDENTIFIER
tNORMAL_CALL = tIDENTIFIER tDOT tSTART_PAREN tARG_LIST tEND_PAREN
tEXPR = ... | ... | tOPERATOR_CALL | tNORMAL_CALL | ... | ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment