Crate uiua_parser

Source

Re-exports§

pub use parse::parse;

Modules§

ast
Uiua’s abstract syntax tree
parse
The Uiua parser

Structs§

BindingCounts
Character counts for a binding
CodeSpan
A span in a Uiua source file
Complex
Uiua’s complex number type
Diagnostic
A message to be displayed to the user that is not an error
FormatPrimitive
A wrapper that nicely prints a Primitive
Inputs
A repository of code strings input to the compiler
Loc
A location in a Uiua source file
PrimNames
The names of a primitive
Report
A rich-text error/diagnostic report
SidedSubscript
The sided part of a subscript
Signature
A function stack signature
Sp
A span wrapping a value
Subscript
A subscripts

Enums§

AsciiToken
An ASCII lexical token
DiagnosticKind
Kinds of non-error diagnostics
InputSrc
The source of code input into the interpreter
LexError
An error that occurred while lexing
NumComponent
A numeric syntax component that can be parsed along with primitive names
NumericSubscript
The numeric part of a subscript
PrimClass
Categories of primitives
PrimComponent
A parsed primitive component
Primitive
A built-in function
Purity
Levels of purity for an operation
ReportFragment
A text fragment of a report
ReportKind
Kinds of reports
SemanticComment
The kinds of semantic comments
Span
A runtime span in a Uiua source file
SubSide
A sided subscript
SysOp
A system function
SysOpClass
Categories of system functions
Token
A Uiua lexical token

Constants§

SUBSCRIPT_DIGITS
Subscript digit characters
WILDCARD_CHAR
A character value used as a wildcard that will equal any character
WILDCARD_NAN
A NaN value that always compares as equal

Traits§

IntoInputSrc
A trait for types that can be converted into an InputSrc

Functions§

is_custom_glyph
Whether a string is a custom glyph
is_ident_char
Whether a character can be among the first characters of a Uiua identifier
lex
Lex a Uiua source file
split_name
Try to parse multiple primitives from the concatenation of their name prefixes

Type Aliases§

Ident
A Uiua identifier