Skip to content

Instantly share code, notes, and snippets.

@andydude
Created March 30, 2013 01:26
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 andydude/5274854 to your computer and use it in GitHub Desktop.
Save andydude/5274854 to your computer and use it in GitHub Desktop.
「int main(int x) { return x; }」
function-definition => 「int main(int x) { return x; }」
declaration-specifiers => 「int 」
declaration-specifier => 「int 」
type-specifier => 「int 」
sym => 「int」
declarator => 「main(int x) 」
direct-declarator => 「main(int x) 」
direct-declarator-first => 「main」
ident => 「main」
direct-declarator-rest => 「(int x) 」
parameter-type-list => 「int x」
parameter-list => 「int x」
parameter-declaration => 「int x」
declaration-specifiers => 「int 」
declaration-specifier => 「int 」
type-specifier => 「int 」
sym => 「int」
declarator => 「x」
direct-declarator => 「x」
direct-declarator-first => 「x」
ident => 「x」
compound-statement => 「{ return x; }」
block-item-list => 「return x; 」
block-item => 「return x; 」
statement => 「return x; 」
jump-statement => 「return x; 」
expression => 「x」
assignment-expression => 「x」
conditional-expression => 「x」
logical-or-expression => 「x」
logical-and-expression => 「x」
inclusive-or-expression => 「x」
exclusive-or-expression => 「x」
and-expression => 「x」
equality-expression => 「x」
relational-expression => 「x」
shift-expression => 「x」
additive-expression => 「x」
multiplicative-expression => 「x」
cast-expression => 「x」
unary-expression => 「x」
postfix-expression => 「x」
postfix-expression-first => 「x」
primary-expression => 「x」
ident => 「x」
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment