package utop
Universal toplevel for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
utop-2.11.0.tbz
sha256=6937c6c672913ac3b875341ac4a205c7561d01cd8ac8f47cfb35d3bc0e762170
sha512=ab8b96eaa7f24654a371245f14819b74de0907ed8f3b2bbd9196808dc10e536458cf95418eeacf6dfc4b7f64a8dd088ee31e2eaae3d9ebc7de7cebcada52fb84
doc/utop/UTop_token/index.html
Module UTop_token
Source
Tokens.
The type of tokens is semi-structured: parentheses construct and quotations are nested and others tokens are flat list.
Source
type location = {
idx1 : int;
(*Start position in unicode characters.
*)idx2 : int;
(*Stop position in unicode characters.
*)ofs1 : int;
(*Start position in bytes.
*)ofs2 : int;
(*Stop position in bytes.
*)
}
Locations in the source string, which is encoded in UTF-8.
Source
type t =
| Symbol of string
| Lident of string
| Uident of string
| Constant of string
| Char
| String of int * bool
(*
*)String (quote_size, terminated)
.| Comment of comment_kind * bool
(*
*)Comment (kind, terminated)
.| Blanks
| Error
| Quotation of (quotation_item * location) list * bool
(*
*)Quotation (items, terminated)
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>