= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module provides convenient pipes for parsing and dealing with includes.
Parameters
module Expr : Expr_intf.S
module State : State_intf.Parser_pipe with type term := Expr.term
Signature
Pipes
val parse :
Dolmen.Std.Statement.t list ->
State.t ->
State.t * (State.t -> State.t * Dolmen.Std.Statement.t option)
Parsing function. Reads a list of prelude statements, and the state and returns a tuple of the new state (including the detected input language), together with a statement generator.
val expand :
State.t ->
Dolmen.Std.Statement.t ->
State.t
* [ `Ok
| `Gen of
(State.t ->
State.t ->
State.t)
* (State.t ->
State.t * Dolmen.Std.Statement.t option) ]
Expand statements (such as includes). Returns the new state, and either:
`Ok
, which means the statement can be propagated as is`Gen (flat, g)
, if the statement expands into a generatorg
. The boolflat
indicates wether the statements ing
should be treated as a single group of statements (with regards to timeouts, etc...), or as a list of independant statements (each with its own timeout...).