Skip to main content

Module apl

Module apl 

Source
Expand description

APL frontend: lexer and parser, lowering to the shared IR.

APL sentences read right to left: the rightmost expression is the right argument of the function to its left, and a function is dyadic exactly when an operand ends immediately to its left. Operators bind tighter than that: f/ and f⍤r are folded into derived functions before the sentence is parsed.

Functions§

parse
Parse an APL program (sentences separated by newlines or ) into IR statements. d is the dialect, resolved: ⎕IO, ⎕CT and the lineage settings the parser reads.