walkzzz/astrolabe/core does not have a README file
pub(all) struct ParseError { pos : Pos expected : Array[String] committed : Bool context : String} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn ParseError::at(pos~ : Pos, expected~ : String) -> ParseError
fn ParseError::commit(self : ParseError) -> ParseError
fn ParseError::equal(ParseError, ParseError) -> Bool
fn ParseError::format(self : ParseError) -> String
fn ParseError::format_with_input(self : ParseError, input : String) -> String
fn ParseError::not_equal(x : ParseError, y : ParseError) -> Bool
fn ParseError::to_repr(ParseError) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum ParseResult[T] { Success(T, State) Failure(ParseError)}
pub(all) struct Parser[T] { run : (State) -> ParseResult[T]}
fn[T] Parser::of(f : (State) -> ParseResult[T]) -> Parser[T]
fn[T] Parser::parse(self : Parser[T], input : String) -> Result[T, ParseError]
fn[T] Parser::parse_full(self : Parser[T], input : String) -> Result[T, ParseError]
pub(all) struct Pos { line : Int column : Int offset : Int} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Pos::advance(self : Pos, ch : Char) -> Pos
fn Pos::equal(Pos, Pos) -> Bool
fn Pos::initial() -> Pos
fn Pos::not_equal(x : Pos, y : Pos) -> Bool
fn Pos::to_repr(Pos) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct State { input : String offset : Int pos : Pos} derive(@moonbitlang/core/debug.DebugDebug)
fn State::advance_by(self : State, n : Int) -> Unit
fn State::advance_one(self : State) -> Unit
fn State::is_eof(self : State) -> Bool
fn State::new(input : String) -> State
fn State::peek(self : State) -> Char?
fn State::remaining(self : State) -> Int
fn State::slice(self : State, start : Int, end : Int) -> String
fn State::to_repr(State) -> @moonbitlang/core/debug.ReprRepr
Install
Position-aware parser combinators for MoonBit — inspired by OCaml Angstrom
No dependencies
No dependents