package alba
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Alba compiler
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6
doc/alba.fmlib/Fmlib/Character_parser/Simple/index.html
Module Character_parser.Simple
Simple Parser.
Parameters
module Final : Module_types.ANYSignature
Modules and Types
module Error :
Generic_parser.ERROR with type expect = string and type semantic = stringtype final = Final.tCombinators
include COMBINATORS
with type expect = string
and type semantic = string
and type state = Common.Unit.t
and type context = string
Basic Combinators
include Generic_parser.COMBINATORS
with type expect = string
with type semantic = string
val return : 'a -> 'a tval succeed : 'a -> 'a tPosition and State Combinators
val get_position : Position.t ttype state = Common.Unit.tIndentation Combinators
val get_bounds : (int * int option) tContext Combinator
val expect_end : unit tval whitespace_char : char tval whitespace : int tval string : string -> unit tval char : char -> unit tval space : unit tval letter : char tval digit : char tParser
During Parsing
include PARSER
val needs_more : parser -> boolDoes the parser need more tokens (i.e. either put_char or put_end)?
val has_ended : parser -> boolHas the parser terminated (opposite of needs_more p)?
val has_succeeded : parser -> boolHas the parser succeeded
val position : parser -> Position.tThe current position.
val line : parser -> intThe current line.
val column : parser -> intThe current column.
put_char p c feeds the parser p with the character token c. Only possible if needs_more p is valid.
Terminated Parser
The result the parser has produced which is either a final value or a list of dead ends. Only valid if the parser has terminated.
The list of tokens (i.e. optional characters) which the parser has not processed at the point of termination.
val lookahead_string : parser -> stringCreate and Run the Parser
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page