package wax-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Libraries for Wax, a Rust-like syntax for WebAssembly
Install
dune-project
Dependency
Authors
Maintainers
Sources
wax-0.1.0.tbz
sha256=41b580846af8d41bdf6c3f005f62e38feda3e60fe2e9e4aa440db34ce515a153
sha512=4b3a181fcc7d743194a8647260870fb5190770066a197bcc48104c2b77fd40c643228b795c2bcd6b29a120820e969eb42a37a9bcec98b3f608d13f152d9f6579
doc/wax-lib.wasm/Wax_wasm/Parsing/Make_parser/index.html
Module Parsing.Make_parserSource
Make plus a fast parser, whose only role is speed on the happy path: parse_from_string tries it and, on a syntax error, falls back to the core's incremental parser to produce the message. Same result signature as Make. The CLI uses this; an in-process consumer can use Make directly.
Parameters
module Output : sig ... endmodule Tokens : sig ... endmodule _ : sig ... endmodule _ : sig ... endmodule _ : sig ... endmodule _ : sig ... endSignature
Source
val parse :
?color:Wax_utils.Colors.flag ->
filename:string ->
unit ->
Output.t * Wax_utils.Trivia.contextAs Make.parse, using the fast parser on the happy path.
Source
val parse_from_string :
?color:Wax_utils.Colors.flag ->
filename:string ->
string ->
Output.t * Wax_utils.Trivia.contextAs Make.parse_from_string, using the fast parser on the happy path.
Source
val parse_diagnostics :
filename:string ->
string ->
(Output.t * Wax_utils.Trivia.context, syntax_error) resultSource
val parse_recover :
filename:string ->
sync:(Tokens.token -> sync_class) ->
?insert:(Tokens.token * Wax_utils.Message.t) list ->
?closers:Tokens.token list ->
?barrier:(Tokens.token * (Tokens.token -> bool) * (Tokens.token -> bool)) ->
string ->
Output.t option * syntax_error list * Wax_utils.Trivia.contextAs Make.parse_recover. (Recovery always uses the incremental engine; there is no fast-path variant.)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page