package comby-kernel

  1. Overview
  2. Docs
On This Page
  1. Alpha Matcher
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Matchers.AlphaSource

Alpha Matcher

Alpha is the match engine that defines default matchers for languages.

Sourceval all : (module Matcher.S) list

all returns all default matchers.

Sourceval select_with_extension : ?metasyntax:Metasyntax.t -> ?external_handler:External.t -> string -> (module Matcher.S) option

select_with_extension metasyntax external file_extension is a convenience function that returns a matcher associated with a file_extension. E.g., use ".c" to get the C matcher. For a full list of extensions associated with matchers, run comby -list. If metasyntax is specified, the matcher will use a custom metasyntax definition instead of the default. An experimental external callback is a general callback for handling external properties in the rewrite template.

Sourceval create : ?metasyntax:metasyntax -> ?external_handler:External.t -> Language.Syntax.t -> (module Matcher.S)

create metasyntax external syntax creates a matcher for a language defined by syntax. If metasyntax is specified, the matcher will use a custom metasyntax definition instead of the default. An experimental external callback is a general callback for handling external properties in the rewrite template.

OCaml

Innovation. Community. Security.