Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* quotations inside comments?
@ 2010-08-31  7:39 Hendrik Tews
  2010-08-31  8:25 ` [Caml-list] " David Allsopp
  0 siblings, 1 reply; 2+ messages in thread
From: Hendrik Tews @ 2010-08-31  7:39 UTC (permalink / raw)
  To: caml-list

Hi,

why does camlp4 parse quotations inside comments? Eg

    echo "(* << *)" | camlp4o -impl -

gives

    File "-", line 1, characters 3-9 (end at line 2, character 0):
    Quotation not terminated

Quotation parsing/lexing seems to be controlled by
context.quotations. How can I switch this off? 

Wouldn't it make more sense to have quotations and antiquotation
parsing/lexing switched off in freshly created parsers/lexers and
switch them only on when a syntax extension with quotations is
installed (eg, inside Camlp4QuotationCommon.Make)?

Bye,

Hendrik


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-31  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31  7:39 quotations inside comments? Hendrik Tews
2010-08-31  8:25 ` [Caml-list] " David Allsopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox