package comby

  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 select_with_extension : ?metasyntax:metasyntax -> string -> (module Matcher.S) option

select_with_extension metasyntax 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.

Sourceval create : ?metasyntax:metasyntax -> syntax -> (module Matcher.S)

create metasyntax 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.

Sourceval all : (module Matcher.S) list

all returns all default matchers.