• Translation rules are in the form:
RE Action
• Action is a program routine that specifies what
  to do when a lexeme is specified by RE
Section II: Translation Rules
Example:
if return(IF);
then return(THEN);
{id} { yylval = install_id();
  return(ID); }
{integer} { yylval = install_int();
  return(INT); }
yylval: value returned by install_id() = attribute of token
33/35