From: Hendrik Tews <tews@os.inf.tu-dresden.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Quotations and the functorial camlp4 interface
Date: Thu, 02 Sep 2010 10:56:05 +0200 [thread overview]
Message-ID: <6x7hj44j8a.fsf@blau.inf.tu-dresden.de> (raw)
In-Reply-To: <19548.32194.301525.322135@blau.inf.tu-dresden.de> (Hendrik Tews's message of "Fri, 6 Aug 2010 23:25:22 +0200")
Hi,
I have another comment in this speek-to-myself-thread:
I wrote:
2. The two MakeQuotationSyntax candidates
Camlp4OCamlRevisedParser.Make and Camlp4OCamlParser.Make do
only mutate the grammar entries in their argument modules.
This is wrong: When they extend the syntax they register
keywords, which are apparently stored in a hash table in the
grammar module. Therefore they mutate the grammar module.
Therefore one always has to create new EmptySyntax'es but can
reuse all the rest (especially Lexer, Ast and Loc) from
Camlp4.PreCast.
At least the grammar argument to OCamlInitSyntax should always be
freshly generated by
Camlp4.Struct.Grammar.Static.Make(Camlp4.PreCast.Lexer) to start
with a fresh keyword hash.
4. Why does Camlp4OCamlRevisedQuotationExpander generate a new
grammar module Gram and does not reuse Camlp4.PreCast.Gram?
Can the latter be changed by some syntax extension?
This is answered now.
Bye,
Hendrik
prev parent reply other threads:[~2010-09-02 8:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 21:25 Hendrik Tews
2010-08-30 14:18 ` [Caml-list] " Hendrik Tews
2010-09-03 7:17 ` Hendrik Tews
2010-09-02 8:56 ` Hendrik Tews [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6x7hj44j8a.fsf@blau.inf.tu-dresden.de \
--to=tews@os.inf.tu-dresden.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox