package comby
A tool for structural code search and replace that supports ~every language
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.2.tar.gz
md5=86fd3dcdaa792a5d871f695a082ad9b5
sha512=63af340d65f4ca37f00bee2a67c7a87822ef15c86051e6486c6eeb5d7fe310c845d4fff15625a72b48ceea89e14aff52dc678da1d43d2029f58b435885d568d8
doc/src/comby.matchers/types.ml.html
Source file types.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
open Core module Syntax = struct type escapable_string_literals = { delimiters : string list ; escape_character: char } [@@deriving yojson] type comment_kind = | Multiline of string * string | Nested_multiline of string * string | Until_newline of string [@@deriving yojson] type t = { user_defined_delimiters : (string * string) list; escapable_string_literals : escapable_string_literals option; [@default None] raw_string_literals : (string * string) list; comments : comment_kind list; } [@@deriving yojson] module type S = sig val user_defined_delimiters : (string * string) list val escapable_string_literals : escapable_string_literals option val raw_string_literals : (string * string) list val comments : comment_kind list end end module Info = struct module type S = sig val name : string val extensions : string list end end module Language = struct module type S = sig module Info : Info.S module Syntax : Syntax.S end end type dimension = | Code | Escapable_string_literal | Raw_string_literal | Comment type id = string type including = char list type until = char option module Hole = struct type sort = | Everything | Expression | Alphanum | Non_space | Line | Blank | Regex type t = { sort : sort ; identifier : string ; dimension : dimension ; optional : bool ; at_depth : int option } let sorts () = [ Everything ; Expression ; Alphanum ; Non_space ; Line ; Blank ; Regex ] end type hole = Hole.t module Omega = struct type omega_match_production = { offset : int ; identifier : string ; text : string } [@@deriving yojson] type production = | Unit | String of string | Template_string of string | Hole of hole | Match of omega_match_production end type production = | Unit | String of string | Hole of hole module Matcher = struct module type S = sig include Info.S val first : ?configuration:Configuration.t -> ?shift:int -> string -> string -> Match.t Or_error.t val set_rewrite_template : string -> unit val all : ?configuration:Configuration.t -> ?nested: bool -> template:string -> source:string -> unit -> Match.t list end end module Match_engine = struct module type S = sig module Text : Matcher.S module Paren : Matcher.S module Dyck : Matcher.S module JSON : Matcher.S module JSONC : Matcher.S module GraphQL : Matcher.S module Dhall : Matcher.S module Latex : Matcher.S module Assembly : Matcher.S module Clojure : Matcher.S module Lisp : Matcher.S module Generic : 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 Dart : Matcher.S module Php : Matcher.S module Go : Matcher.S module Javascript : Matcher.S module Jsx : Matcher.S module Typescript : Matcher.S module Tsx : Matcher.S module Swift : Matcher.S module Rust : Matcher.S module OCaml : Matcher.S module Reason : Matcher.S module Fsharp : Matcher.S module Pascal : Matcher.S module Julia : Matcher.S module Fortran : Matcher.S module Haskell : Matcher.S module Elm : Matcher.S module Zig: Matcher.S module Coq: Matcher.S module Move: Matcher.S module Solidity: Matcher.S module C_nested_comments : Matcher.S val create : Syntax.t -> (module Matcher.S) val select_with_extension : string -> (module Matcher.S) option val all : (module Matcher.S) list end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>