Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camlp4 et les commentaires #8077

Closed
vicuna opened this issue Mar 20, 2003 · 2 comments
Closed

camlp4 et les commentaires #8077

vicuna opened this issue Mar 20, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 20, 2003

Original bug ID: 1610
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

J'aimerais bien pouvoir mettre du code avec des streams en
commentaire...
--f

frouaix:/tmp$ cat /tmp/x.ml
(*
let foo = [< '"x" >]
*)
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
File "x.ml", line 1, characters 0-28:
Lexing error: string not terminated
Preprocessor error
frouaix:/tmp$ cat /tmp/x.ml
let foo = [< '"x" >]
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
frouaix:/tmp$

@vicuna
Copy link
Author

vicuna commented Mar 31, 2003

Comment author: administrator

J'aimerais bien pouvoir mettre du code avec des streams en
commentaire...

C'est fixe dans la version de travail (3.06+27).

frouaix:/tmp$ cat /tmp/x.ml
(*
let foo = [< '"x" >]
*)

Maintenant on peut meme faire ca: (en remplacant "^M" par CR)

let f x y = 1;;

f '\x00'"'xxx";;
(* f '\x00'"'xxx";; *)

f '\x00' '"';;
(* f '\x00' '"';; *)

f '''"'xxx";;
(* f '''"'xxx";; *)

(* f '(* x *) xx xx *)

(* f '*)

f '^M
' 0;;
(* f '^M

' 0;; *)

f '^M' 0;;
(* f '^M' 0;; *)

f '"'"'";;
(* f '"'"'";; *)

(* f '"xx xx" *)

@vicuna
Copy link
Author

vicuna commented Mar 31, 2003

Comment author: administrator

fixed by DD 2003-03-31

@vicuna vicuna closed this as completed Mar 31, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant