package alba
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4817038301d3e45bac9edf7e6f2fc8bf0a6d78e76e02ad7ea33ef69bcc17df3b
md5=25234357587126685d64f16236167937
doc/alba.core/Alba_core/Operator/index.html
Module Alba_core.Operator
val where : tval assign : tPrecedence/associativity of assignment ":=".
val arrow : tPrecedence/associativity of arrow operators "->", "=>".
val colon : tPrecedence/associativity of colon ':' operator.
val relation : tPrecedence/associativity of relation operators.
val addition : tPrecedence/associativity of addition operators.
val multiplication : tPrecedence/associativity of multiplication operators.
val application : tPrecedence/associativity of function application.
val of_string : string -> tof_string op computes the precedence information of the operator op given as a string. for unknow operators the highest precedence below function application and left associativity is returned.
needs_parens lower is_left upper decides if the lower operand lower used as a left or right operand (indicated by the flag is_left) for upper needs parentheses.
is_left_leaning op1 op2
a op1 b op2 c has to be parsed as (a op1 b) op2 c
is_right_leaning op1 op2
a op1 b op2 c has to be parsed as a op1 (b op2 c)
val precedence : t -> int