* Some obsolete constructions ?
@ 2010-04-30 13:23 Emmanuel Dieul
2010-04-30 14:18 ` [Caml-list] " Alain Frisch
0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Dieul @ 2010-04-30 13:23 UTC (permalink / raw)
To: caml-list
Hello,
I'm building an outline of an ocaml source file (interface or
implementation) with
the abstract syntax tree generated by the -dparsetree compiler option.
This abstract syntax tree is printed via the
/ocaml/release/3.11.2/parsing/printast.ml
module. During my cover tests, I didn't managed to obtain these AST
elements :
- Pcf_let : a let construction as a class field ?
- Pexp_letmodule : ?
- Pexp_override : an override expression ?
- Ppat_type : a type pattern matching ?
- Rinherit : an inherit row field ?
Are these constructions obsolete ? If not, which code could generate
these AST elements ?
Thanks,
Emmanuel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Some obsolete constructions ?
2010-04-30 13:23 Some obsolete constructions ? Emmanuel Dieul
@ 2010-04-30 14:18 ` Alain Frisch
2010-04-30 20:36 ` Emmanuel Dieul
0 siblings, 1 reply; 3+ messages in thread
From: Alain Frisch @ 2010-04-30 14:18 UTC (permalink / raw)
To: Emmanuel Dieul; +Cc: caml-list
On 04/30/2010 03:23 PM, Emmanuel Dieul wrote:
> - Pcf_let : a let construction as a class field ?
AFAIK, this one is obsolete.
> - Pexp_letmodule : ?
let module L = List in ();;
> - Pexp_override : an override expression ?
object(this) method m = {< >} end;;
> - Ppat_type : a type pattern matching ?
type t = [`A];;
fun #t -> ();;
> - Rinherit : an inherit row field ?
type t = [`A];;
type s = [t | `B];;
-- Alain
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Some obsolete constructions ?
2010-04-30 14:18 ` [Caml-list] " Alain Frisch
@ 2010-04-30 20:36 ` Emmanuel Dieul
0 siblings, 0 replies; 3+ messages in thread
From: Emmanuel Dieul @ 2010-04-30 20:36 UTC (permalink / raw)
To: caml-list
Le 30/04/2010 16:18, Alain Frisch a écrit :
> On 04/30/2010 03:23 PM, Emmanuel Dieul wrote:
>> - Pcf_let : a let construction as a class field ?
>
> AFAIK, this one is obsolete.
>
>> - Pexp_letmodule : ?
>
> let module L = List in ();;
>
>> - Pexp_override : an override expression ?
>
> object(this) method m = {< >} end;;
>
>> - Ppat_type : a type pattern matching ?
>
> type t = [`A];;
> fun #t -> ();;
>
>> - Rinherit : an inherit row field ?
>
> type t = [`A];;
> type s = [t | `B];;
>
>
> -- Alain
>
>
Great ! This completes my knowledge of ocaml constructions !...
Thanks !
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-30 20:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-30 13:23 Some obsolete constructions ? Emmanuel Dieul
2010-04-30 14:18 ` [Caml-list] " Alain Frisch
2010-04-30 20:36 ` Emmanuel Dieul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox