moonbitlang/lexer/basic does not have a README file

    BasePos

    pub(all) struct BasePos {
    base_pkg : String
    base_fname : String
    base_lnum : Int
    } derive(Compare, Eq, Hash,
    Debug
    )

    BasePos::from_position

    fn BasePos::from_position(pkg~ : String, pos : Position) -> BasePos

    BasePos::none

    fn BasePos::none() -> BasePos

    LocStyle

    pub(all) enum LocStyle {
    Hidden
    Json
    String
    }

    Location

    pub(all) struct Location {
    start : Position
    end : Position
    } derive(Compare, Eq, Hash,
    Debug
    )

    impl Show for Location
    impl ToJson for Location

    Location::merge

    fn Location::merge(self : Location, other : Location) -> Location

    Location::trim_first_char

    fn Location::trim_first_char(self : Location) -> Location

    Location::trim_last_char

    fn Location::trim_last_char(self : Location) -> Location

    Position

    pub(all) struct Position {
    fname : String
    lnum : Int
    bol : Int
    cnum : Int
    } derive(Hash, ToJson,
    Debug
    )

    impl Compare for Position
    impl Eq for Position
    impl Show for Position

    Position::column

    fn Position::column(self : Position) -> Int

    Report

    pub(all) struct Report {
    loc : Location
    msg : String
    } derive(
    Debug
    )

    impl Show for Report
    impl ToJson for Report

    builtin_package

    let builtin_package : String

    current_package

    let current_package :
    Ref
    [String]

    show_loc

    Determines the location style when serializing the AST into JSON.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io