%{ %} #include numeric.tin #include string.tin %start command %% #include numeric.trl command : height | height {yyclearin; YYACCEPT} STRING_ ; height : INT_ {CanvasCmdSet height $1 UpdateView} ; %% proc height::yyerror {msg} { variable yycnt variable yy_current_buffer variable index_ ParserError $msg $yycnt $yy_current_buffer $index_ }