susu #7789(2008/10/13 02:37 GMT) [ OCaml ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13
let decomment s = Stream.iter (fun item -> print_string (match item with | Kwd s | Ident s -> s | String s -> Printf.sprintf "\"%s\"" (String.escaped s) | Char c -> Printf.sprintf "'%s'" (Char.escaped c) | Int n -> string_of_int n | Float f -> string_of_float f ); print_char ' ' ) (make_lexer [] (Stream.of_string s));; (* decomment "aa\"(* bb \\\" cc *)\"dd '\\\\' (* zz *) ";; *)
Rating0/0=0.00-0+
[ reply ]
susu
#7789()
[
OCaml
]
Rating0/0=0.00
空白、改行、タブなどは捨てられてしまいます。
Rating0/0=0.00-0+
[ reply ]