caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Beck01, Wolfgang" <BeckW@t-systems.com>
To: caml-list@inria.fr
Subject: camlp4o  and lazy: pr_o: not impl: expr; tag = 19
Date: Tue, 3 Jan 2006 15:31:05 +0100	[thread overview]
Message-ID: <97A461F3EE5284469E41ED3728202F41121F18@S4DE9JSAAMW.ost.t-com.de> (raw)

During the holidays I tried to get finally a clue about camlp4.

When I have a small grammar like this:

open Pcaml
EXTEND
	expr:
	[ [
		"bla" ->
			let fe = <:expr< tst() >>
			in
			let lzy = <;expr< lazy $fe$ >>
			in
			<:expr< do_something $lzy$ >>
	] ]
	;
END

and compile it to g3.cmo with

	ocamlc -pp "camlp4o pa_extend.cmo q_MLast.cmo" -I +camlp4 -c g3.ml

and pass a file containing a bla through

	camlp4o ./g3.cmo pr_o.cmo bla.ml

I get
	let _ = do_something<pr_o: not impl: expr; tag = 19>

There seems to be an issue with <:expr< lazy ... When I replace
'lazy' with 'lazi' everything works as expected:

	let _ = do_someting (lazi (tst ()))

Any idea what's wrong here?


Wolfgang
--
T-Systems International GmbH
Technologiezentrum
Next Generation IP Services and Systems
+49 6151 9372863
Am Kavalleriesand 3
64295 Darmstadt



             reply	other threads:[~2006-01-03 14:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03 14:31 Beck01, Wolfgang [this message]
2006-01-03 18:11 ` [Caml-list] " Michel Mauny

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=97A461F3EE5284469E41ED3728202F41121F18@S4DE9JSAAMW.ost.t-com.de \
    --to=beckw@t-systems.com \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).