Skip to content

Instantly share code, notes, and snippets.

@m1el
Created August 28, 2014 11:12
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 m1el/f1bd31005b09cc80728a to your computer and use it in GitHub Desktop.
Save m1el/f1bd31005b09cc80728a to your computer and use it in GitHub Desktop.
input: SExpression {
std::cout << "Result: ";
};
Part: Symbol | String | Integer {
std::cout << "Part\n";
}
CallArgs: | CallArgs CallArg;
CallArg: LBRK ArgList RBRK | LBRK RBRK;
ArgList: SExpression | ArgList Comma SExpression;
SExpression: Part CallArgs {
std::cout << "SExpression\n";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment