package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.1.4.v8.16.tbz
sha256=50df59eafc5b24a881c1a1dda6f6032b1da35b9b6ade7cb9e39968def9319508
sha512=e1d383b6802758cdbe5cbc6278af275d7951acd78224cdcfe622428942e84366ca283bf375d6e535ad7e8d8e847df84bd763bb2a263fc457dc5aead386c2836d
doc/src/coq-lsp.lsp/jCoq.ml.html
Source file jCoq.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
module Names = Serlib.Ser_names module Evar = Serlib.Ser_evar let rec pp_opt d = let open Pp in let rec flatten_glue l = match l with | [] -> [] | Ppcmd_glue g :: l -> flatten_glue (List.map repr g @ flatten_glue l) | Ppcmd_string s1 :: Ppcmd_string s2 :: l -> flatten_glue (Ppcmd_string (s1 ^ s2) :: flatten_glue l) | x :: l -> x :: flatten_glue l in unrepr (match repr d with | Ppcmd_glue [] -> Ppcmd_empty | Ppcmd_glue [ x ] -> repr (pp_opt x) | Ppcmd_glue l -> Ppcmd_glue List.(map pp_opt (map unrepr (flatten_glue (map repr l)))) | Ppcmd_box (bt, d) -> Ppcmd_box (bt, pp_opt d) | Ppcmd_tag (t, d) -> Ppcmd_tag (t, pp_opt d) | d -> d) module Pp = struct include Serlib.Ser_pp let to_string = Pp.string_of_ppcmds let to_yojson x = to_yojson (pp_opt x) end module Goals = struct type 'a hyp = [%import: 'a Coq.Goals.hyp] [@@deriving yojson] type info = [%import: Coq.Goals.info] [@@deriving yojson] type 'a reified_goal = [%import: 'a Coq.Goals.reified_goal] [@@deriving yojson] type 'a goals = [%import: 'a Coq.Goals.goals] [@@deriving yojson] type reified_pp = Pp.t reified_goal goals [@@deriving yojson] end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>