package ppx_nanocaml

  1. Overview
  2. Docs
Framework for writing nanopass-style compilers

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
sha256=f9f6772ff2e53d8fb3c22b459e9eb1fd68aefff381c121c0588ea3d0791cf5ae
md5=38877f4878af035303e02b3c9a399e98

doc/nanocaml/Nanocaml/Pass_codegen/Lib_ast/index.html

Module Pass_codegen.Lib_ast

val fold_lid : Nanocaml.Ast.Longident.t
val map_lid : Nanocaml.Ast.Longident.t
val fold_exp : loc:Migrate_parsetree__Ast_405.Ast_helper.loc -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.pattern -> Migrate_parsetree__Ast_405.Parsetree.pattern -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.expression

generates expression of the form fold l z0 (fun x z -> e). *

val map_exp : loc:Migrate_parsetree__Ast_405.Ast_helper.loc -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.pattern -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.expression

generates expression of the form map l (fun p -> e). *

val zipper_exp : next_id:int Batteries.ref -> loc:Migrate_parsetree__Ast_405.Location.t -> string Pass.loc -> 'a list -> Migrate_parsetree__Ast_405.Parsetree.expression -> Migrate_parsetree__Ast_405.Parsetree.expression

generates a function to zip n lists

OCaml

Innovation. Community. Security.