package css
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=70981bffdf5df82fd8ed20eb61b62e4d
sha512=45083ab20d89e3289bfdee0eb32717b8e37f7b0aedf6652afaa7a96008c9b35981c451be82d63d070e27c7ec0087619f2c0271301645907a8897163b8f49fd3d
doc/css/Css/U/index.html
Module Css.USource
Utilities for parsing.
Parser failing with the given message where current position is added.
parse_error ctx e raises a T.Error with a parse error e and last position of ctx.
Util parsers
opt_ p returns None if p fails, else return Some r where r is the result of p.
take_char is a parser returning None is there is no more char, else accept any character c, Angstrom.advance by 1 char and returns Some c.
take_while_upto pred n accepts at most n characters or as long a pred returns true. Returns accepted characters as a string.
Same as take_while_upto but fails if no character is available.
Accept a comment.
ws ctx accepts any number of white spaces or comments.
Parser combinators
p1 &&& p2 returns a parser succeeding when p1 and p2 succeed, in any order.
p1 ||| p2 returns a parser accepting values for p1 or p2 or both.
alt_1_2 def1 p1 def2 p2 is the same as (|||) but returns the provided default values for each parser.
Predefined character parsers
All these parser accept a character after optional white spaces or comments.