package ppx_tools
Tools for authors of ppx rewriters and other syntactic tools
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_tools-6.5.tar.gz
md5=57439259c19b1615588c613a4e7c10e3
sha512=9f24e5feb9d32a5f038e94db33b6a8ba22ef0f83964bf657ac12fd0d39ae2580769612b1ba8988a56a146e4ae5da99e089bda24a4944b18b1df6e146bb75237b
doc/ppx_tools/Ast_convenience/index.html
Module Ast_convenience
Source
Convenience functions to help build and deconstruct AST fragments.
Compatibility modules
Misc
Expressions
Source
val let_in :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
?recursive:bool ->
Parsetree.value_binding list ->
Parsetree.expression ->
Parsetree.expression
Source
val constr :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
string ->
Parsetree.expression list ->
Parsetree.expression
Source
val record :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
?over:Parsetree.expression ->
(string * Parsetree.expression) list ->
Parsetree.expression
Source
val tuple :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.expression list ->
Parsetree.expression
Source
val cons :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.expression ->
Parsetree.expression ->
Parsetree.expression
Source
val list :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.expression list ->
Parsetree.expression
Source
val func :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
(Parsetree.pattern * Parsetree.expression) list ->
Parsetree.expression
Source
val app :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.expression ->
Parsetree.expression list ->
Parsetree.expression
Source
val sequence :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.expression list ->
Parsetree.expression
Return ()
if the list is empty. Tail rec.
Patterns
Source
val pconstr :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
string ->
Parsetree.pattern list ->
Parsetree.pattern
Source
val precord :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
?closed:Asttypes.closed_flag ->
(string * Parsetree.pattern) list ->
Parsetree.pattern
Source
val ptuple :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.pattern list ->
Parsetree.pattern
Source
val pcons :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.pattern ->
Parsetree.pattern ->
Parsetree.pattern
Source
val plist :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
Parsetree.pattern list ->
Parsetree.pattern
Types
Source
val tconstr :
?loc:Ast_helper.loc ->
?attrs:Ast_helper.attrs ->
string ->
Parsetree.core_type list ->
Parsetree.core_type
AST deconstruction
Source
val get_str_with_quotation_delimiter :
Parsetree.expression ->
(string * string option) option
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page