moonbitlang/lexer/basic does not have a README file
pub(all) struct BasePos { base_pkg : String base_fname : String base_lnum : Int} derive(Compare, Eq, Hash, @moonbitlang/core/debug.DebugDebug)
fn BasePos::from_position(pkg~ : String, pos : Position) -> BasePos
fn BasePos::none() -> BasePos
pub(all) enum LocStyle { Hidden Json String}
pub(all) struct Location { start : Position end : Position} derive(Compare, Eq, Hash, @moonbitlang/core/debug.DebugDebug)
impl Show for Location
fn output(self : Location, buf : &Logger) -> Unit
impl ToJson for Location
fn to_json(loc : Location) -> Json
fn Location::merge(self : Location, other : Location) -> Location
fn Location::trim_first_char(self : Location) -> Location
fn Location::trim_last_char(self : Location) -> Location
pub(all) struct Position { fname : String lnum : Int bol : Int cnum : Int} derive(Hash, ToJson, @moonbitlang/core/debug.DebugDebug)
impl Compare for Position
fn compare(self : Position, other : Position) -> Int
impl Eq for Position
fn equal(self : Position, other : Position) -> Bool
impl Show for Position
fn output(self : Position, logger : &Logger) -> Unit
fn Position::column(self : Position) -> Int
pub(all) struct Report { loc : Location msg : String} derive(@moonbitlang/core/debug.DebugDebug)
impl Show for Report
fn output(self : Report, logger : &Logger) -> Unit
impl ToJson for Report
fn to_json(self : Report) -> Json
let builtin_package : String
let current_package : @moonbitlang/core/ref.RefRef[String]
let show_loc : @moonbitlang/core/ref.RefRef[LocStyle]
Install
Lexer for the MoonBit programming language
Powered by MoonBit
© 2026 mooncakes.io