package ppxx

  1. Overview
  2. Docs

Expressions

val var : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> string -> Migrate_parsetree.Ast_405.Parsetree.expression

Create a variable AST of the given name like "x"

val id : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> string -> Migrate_parsetree.Ast_405.Parsetree.expression

Create an longident AST of the given name, such as "Printf.printf".

val lident : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> Migrate_parsetree.Ast_405.Longident.t -> Migrate_parsetree.Ast_405.Parsetree.expression

Create an longident AST.

val string : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> string -> Migrate_parsetree.Ast_405.Parsetree.expression

Create a string AST

val int : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> int -> Migrate_parsetree.Ast_405.Parsetree.expression

Create an int AST

val bool : ?loc:Migrate_parsetree.Ast_405.Location.t -> ?attrs:Migrate_parsetree.Ast_405.Ast_helper.attrs -> bool -> Migrate_parsetree.Ast_405.Parsetree.expression

Create a bool AST

Create Some e or None

Parse the given string as an expression and returns the corresponding AST

Create object method m1 = e1 .. method mn = en end.

Create assert false

Imported from Ast_helper

val is_simple_ext : string -> Migrate_parsetree.Ast_405.Parsetree.expression -> bool

is_simple_ext <str> e Returns true if e is %<str>.

OCaml

Innovation. Community. Security.