package comby-kernel

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

Omega Matcher

Alternative, partial, experimental match engine.

module Text : Matcher.S
module Paren : Matcher.S
module Dyck : Matcher.S
module JSON : Matcher.S
module JSONC : Matcher.S
module Dhall : Matcher.S
module Latex : Matcher.S
module Lisp : Matcher.S
module Bash : Matcher.S
module Ruby : Matcher.S
module Elixir : Matcher.S
module Python : Matcher.S
module Html : Matcher.S
module Xml : Matcher.S
module SQL : Matcher.S
module Erlang : Matcher.S
module C : Matcher.S
module Csharp : Matcher.S
module Java : Matcher.S
module CSS : Matcher.S
module Kotlin : Matcher.S
module Scala : Matcher.S
module Nim : Matcher.S
module Matlab : Matcher.S
module Dart : Matcher.S
module Php : Matcher.S
module Go : Matcher.S
module Jsx : Matcher.S
module Tsx : Matcher.S
module Swift : Matcher.S
module Rust : Matcher.S
module R : Matcher.S
module OCaml : Matcher.S
module Reason : Matcher.S
module Fsharp : Matcher.S
module Pascal : Matcher.S
module Julia : Matcher.S
module HCL : Matcher.S
module Elm : Matcher.S
module Zig : Matcher.S
module Coq : Matcher.S
module Move : Matcher.S
val all : (module Matcher.S) list

all returns all default matchers.

val 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.

val 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.