Posted to tcl by colin at Thu Jan 03 07:48:09 GMT 2013view raw

  1. $sg add {
  2. [0-9]+ { return [list NUMBER $yytext] }
  3. {\+} { return PLUS }
  4. {-} { return MINUS }
  5. {\*} { return MULTIPLY }
  6. {/} { return DIVIDE }
  7. {\(} { return OPEN }
  8. {\)} { return CLOSE }
  9. }