mochi/parser
Types
pub type ParseError {
LexError(error: @internal LexerError)
UnexpectedToken(
expected: String,
got: @internal Token,
position: @internal Position,
)
UnexpectedEOF(expected: String)
}
Constructors
-
LexError(error: @internal LexerError) -
UnexpectedToken( expected: String, got: @internal Token, position: @internal Position, ) -
UnexpectedEOF(expected: String)
Values
pub fn parse(
input: String,
) -> Result(@internal Document, ParseError)