package grace
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A fancy diagnostics library that allows your compilers to exit with grace
Install
dune-project
Dependency
Authors
Maintainers
Sources
grace-0.4.1.tbz
sha256=d49754224206de44855590848b3a5a6cc1d5c46cf99a4e5810ca3041d436a28e
sha512=2984b5a6284bf8bbd05419cf850c15c34bc19c19f0c8928b83cc1be1c0bfc84aafef6d992e7435c2f48ba361a6f3aab679abd02f0e6472361c8cec7d497bc405
doc/grace/Grace/Source/index.html
Module Grace.SourceSource
Source is a file-like abstraction.
Grace provides the abstraction of a file called a 'source'.
There are several benefits with providing a in-memory abstraction of a sources:
- Virtual files: It is often useful to invent temporary files (e.g. test input, command line input, REPL input). By providing a in-memory abstraction, Grace provides the ability to create virtual files.
- Caching: Caching sources is useful in many situations (e.g. LSP semantic analysis, reporting multiple errors in a single file in a diagnostic reporter, etc).
Source
type string_source = {name : string option;(*The name of a string source. The diagnostic render can use the name of a string source in place of a file path.
*)content : string;(*The content of a string source
*)
}An in-memory string source.
Source
type t = [ | `File of string(*A file source specified by its filename.
*)| `String of string_source(*A in-memory string source.
*)| `Reader of Reader.t(*A reader-backed source.
*)
]The type of sources.
include Grace_std.Comparable.S with type t := t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>