lang::parser::op_table
lang/src/parser/op_table.mo
Monad's operator table: which characters can form an operator, and each operator's precedence and associativity.
Split out of parser/core.mo, which is otherwise generic. This file is the
opposite -- every entry below is a fact about THIS language's grammar, so a
parser substrate reused elsewhere must not carry it.
pub type OpEntry {
mk (op_str : String) (prec : I64) (right_assoc : Bool)
}pub def op_chars : List Stringpub def op_table : List OpEntry