package ast_generic

  1. Overview
  2. Docs
val default_visitor : visitor_in
val mk_visitor : visitor_in -> visitor_out

Make a visitor that fixes token locations, e.g. when we want to interpret * a sub-AST as an independent program. This is used to implement * metavariable-pattern in Match_rules.satisfies_metavar_pattern_condition.

OCaml

Innovation. Community. Security.