{
open YourParser        (* The type token is defined in yourParser.mli *)
exception Eof

}
rule token = parse
   [' ' '\t']     { token lexbuf }     (* skip blanks *)
 | ['\n' ]        { EOL }
 | ['0'-'9']+     { INT(int_of_string(Lexing.lexeme lexbuf)) }
 | '+'            { PLUS }
 | '-'            { MINUS }
 | '*'            { TIMES }
 | '/'            { DIV }
 | '('            { LPAREN }
 | ')'            { RPAREN }
 | eof            { raise Eof }

