ocaml
let buf = Lexing. from_channel stdin in let f = lex float buf in print endline f You should lex floats according to the following (after A floating constant consists of an integer part, a decimal point, a fraction part, an e or an E, and an optionally signed integer exponent. The integer and fraction […]