Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (* Lexer function *)
- let rec token buf =
- match%sedlex buf with
- | number ->
- let n = int_of_string (Sedlexing.Utf8.lexeme buf) in
- Some (Number n, buf)
- | op_plus ->
- Some (Op_plus, buf)
- | Plus xml_blank ->
- token buf
- | eof ->
- None
- | _ ->
- assert false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement