tonyyuyiding/asdl/parser does not have a README file
using @moonbitlang/core/builtin { type StringView as Identifier }
pub suberror ParseError { UnexpectedToken(@tonyyuyiding/asdl/lexer.TokenToken) UnexpectedEof}
pub(all) struct Constructor { name : StringView fields : Array[Field]} derive(@moonbitlang/core/debug.DebugDebug)
fn Constructor::to_repr(Constructor) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum Definition { Product(name~ : StringView, fields~ : Array[Field]) Sum(name~ : StringView, constructors~ : Array[Constructor], attributes~ : Array[Field])} derive(@moonbitlang/core/debug.DebugDebug)
fn Definition::to_repr(Definition) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct Field { type_ : StringView quant : Quantifier? name : StringView?} derive(@moonbitlang/core/debug.DebugDebug)
fn Field::to_repr(Field) -> @moonbitlang/core/debug.ReprRepr
pub(all) struct Module { name : StringView definitions : Array[Definition]} derive(@moonbitlang/core/debug.DebugDebug)
fn Module::to_repr(Module) -> @moonbitlang/core/debug.ReprRepr
pub(all) enum Quantifier { Optional Sequence} derive(@moonbitlang/core/debug.DebugDebug)
fn Quantifier::to_repr(Quantifier) -> @moonbitlang/core/debug.ReprRepr
fn parse_tokens(tokens : Array[@tonyyuyiding/asdl/lexer.TokenToken]) -> Module raise ParseError
Install
Generate AST types from ASDL (Abstract Syntax Description Language) descriptions.
Dependencies
Powered by MoonBit
© 2026 mooncakes.io