Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. {
  2. open Lexing
  3. open Parser
  4. }
  5.  
  6. let int = "-"? ['0'-'9'] ['0'-'9']*
  7. let digit = ['0'-'9']
  8. let frac = '.' digit*
  9. let exp = ['e' 'E'] ['-' '+']? digit+
  10. let float = digit* frac? exp?
  11.  
  12. let white = [' ' '\t']+
  13.  
  14. rule read =
  15. parse
  16. | white { read lexbuf }
  17. | eof { EOF }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement