Browse thread
Camlp4. print variable value to target source.
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Сергей_ Плаксин <serp@s...> |
| Subject: | Camlp4. print variable value to target source. |
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")); -----