Generic_parser.Makemodule T : Module_types.ANYmodule S : Module_types.ANYmodule Expect : Module_types.ANYmodule Semantic : Module_types.ANYmodule F : Module_types.ANYtype token = T.ttype final = F.tinclude COMBINATORS with type semantic = Semantic.ttype semantic = Semantic.tval return : 'a -> 'a tval succeed : 'a -> 'a tfollowed_by p expect
Parses p and backtracks (i.e. all tokens of p will be pushed back to the lookahead). In case p succeeds, the followed_by parser succeeds without consuming tokens. Otherwise it fails without consuming tokens.
not_followed_by p expect
Parses p and backtracks (i.e. all tokens of p will be pushed back to the lookahead). In case p succeeds, the not_followed_by parser fails without consuming tokens. Otherwise it succeeds without consuming tokens.
val needs_more : parser -> boolval has_ended : parser -> boolval error_string :
parser ->
(Expect.t -> string) ->
(Semantic.t -> string) ->
stringval has_succeeded : parser -> boolval has_failed : parser -> bool