Skip to content

Instantly share code, notes, and snippets.

@ilyarudyak
Created August 1, 2016 11:53
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 ilyarudyak/fa39d26aaa9a155b7ce739bf19b461c5 to your computer and use it in GitHub Desktop.
Save ilyarudyak/fa39d26aaa9a155b7ce739bf19b461c5 to your computer and use it in GitHub Desktop.
Symbol tables and attributes
-----------------------------
lexical structure symbol table attribute
- integers inttable cool_yylval.symbol
- identifiers idtable cool_yylval.symbol
- special notation n/a n/a
- strings stringtable cool_yylval.symbol
- comments n/a n/a
- keywords n/a n/a except booleans:
cool_yylval.boolean
- error n/a cool_yylval.error_ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment