Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
quotations inside comments?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hendrik Tews <tews@o...>
Subject: quotations inside comments?

why does camlp4 parse quotations inside comments? Eg

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


    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)?