caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Camlp4. print variable value to target source.
@ 2008-09-11 10:16 Сергей Плаксин
  2008-09-11 12:00 ` [Caml-list] " Jeremy Yallop
  2008-09-11 12:02 ` David Teller
  0 siblings, 2 replies; 7+ messages in thread
From: Сергей Плаксин @ 2008-09-11 10:16 UTC (permalink / raw)
  To: Caml List

Sorry for my bad english.

I'am write camlp4 parser.

Correct code:
-----
  <:str_item<let a = <:ctyp<int>>>>
----
this will be converted to:
----
let a =  Ast.TyId (_loc, Ast.IdLid (_loc, "int"));
-------


Exitst any way to do such things?

------
  let t = <:ctyp<int>> in
  <:str_item<let t = ?content of t here? >>
----
||
-----
let t = Ast.TyId (_loc, Ast.IdLid (_loc, "int"));
-----




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

end of thread, other threads:[~2008-09-11 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-11 10:16 Camlp4. print variable value to target source Сергей Плаксин
2008-09-11 12:00 ` [Caml-list] " Jeremy Yallop
2008-09-11 12:15   ` Сергей Плаксин
2008-09-11 12:56     ` Nicolas Pouillard
2008-09-11 13:33       ` Сергей Плаксин
2008-09-11 12:02 ` David Teller
2008-09-11 12:09   ` Сергей Плаксин

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