Skip to main content

Module frontend

Module frontend 

Source
Expand description

Language frontends. Each parses its own syntax into the shared IR.

Modules§

apl
APL frontend: lexer and parser, lowering to the shared IR.
j
J frontend: lexer and the sentence parser, lowering to the shared IR.

Structs§

Dialect
Dialect settings supplied by the host.
Rules
A dialect resolved against a language: what the parser and the engine read. Copyable, and carried by every evaluation context, so a rule that only bites at run time (the index origin a key answers with, the order a grade puts complex values in) reads the same setting the parser did.
SourceParts
A source text with interpolation holes split out. Spans in every token and error refer to display, where hole i reads {name_i}.

Enums§

ComplexOrder
How a grade orders complex values.
DefaultArg
When ⍺←v evaluates v.
DfnResult
Which sentence of a dfn body is its result.
FirstDisclose
What and mean monadically.
IndexForm
What means.
Lang
NestedModel
How a nested array holds a simple scalar.
Segment

Functions§

compile
Compile a plain source string (with {name} holes) in the given language.
compile_parts
Compile pre-split parts (the t-string path).