moonrockz/krueger/syntax does not have a README file
pub(open) trait Handler {
fn on_enter(Self, EnterEvent) -> Control = _
fn on_leave(Self, LeaveEvent) -> Unit = _
}pub(open) trait Visitor {
fn visit_declaration(Self, NodeRef) -> Control = _
fn visit_function(Self, NodeRef) -> Control = _
fn visit_expression(Self, NodeRef) -> Control = _
fn visit_pattern(Self, NodeRef) -> Control = _
fn visit_type(Self, NodeRef) -> Control = _
fn visit_case(Self, NodeRef) -> Control = _
fn visit_import(Self, NodeRef) -> Control = _
fn visit_comment(Self, NodeRef) -> Control = _
fn visit_attribute(Self, NodeRef) -> Control = _
fn visit_other(Self, NodeRef) -> Control = _
fn leave(Self, NodeRef) -> Unit = _
}fn EnterEvent::new(category~ : String, kind~ : String, field~ : String?, start~ : Location, path~ : NodePath) -> EnterEventpub struct EventReader {
// private fields
}impl EventSource for EventReaderpub(all) enum NodeRef {
File(File, ArrayView[AttributeGroup])
Module(Node[Module])
ModuleName(Node[ArrayView[String]])
Exposing(Node[Exposing])
Expose(Node[TopLevelExpose])
Import(Node[Import])
Declaration(Node[Declaration], ArrayView[DocAttribute])
Documentation(Node[String])
Signature(Node[Signature])
Implementation(Node[FunctionImplementation])
Constructor(Node[ValueConstructor])
Expression(Node[Expression])
LetDeclaration(Node[LetDeclaration])
Case(Case)
RecordSetter(Node[RecordSetter])
Pattern(Node[Pattern])
TypeAnnotation(Node[TypeAnnotation])
RecordField(Node[RecordField])
Name(Node[String])
Comment(Node[String])
Attribute(DocAttribute)
} derive(Eq, Debug)pub struct Tree {
// private fields
}pub struct TreeCursor {
// private fields
}Install
Download zipParser and parsing utilities for Elm and Elm-like dialects (e.g. Morphir) in MoonBit
Dependencies