///|
test {
let s = @scanner.tokenize_text("string Foo\n")
inspect(s.to_source(), content="string Foo\n")
debug_inspect(
s.tokens.iter().map(t => t.kind).collect(),
content=(
#|[Identifier, Identifier]
),
)
inspect(s.has_errors(), content="false")
}fn is_integer_lexeme(lexeme : String) -> Boolfn text_block_value(lexeme : String) -> Stringfn unescape(lexeme : String) -> StringInstall
Download zipSmithy IDL syntax for MoonBit: lossless scanner, typed AST, CST, parser and diagnostics
Dependencies