package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6

doc/alba.albalib/Albalib/Operator/index.html

Module Albalib.OperatorSource

Sourcetype t
Sourcetype assoc =
  1. | Left
  2. | Right
  3. | No
Sourceval lambda : t

Precedence/associativity of lambda_abstraction.

Sourceval assign : t

Precedence/associativity of assignment ":=".

Sourceval arrow : t

Precedence/associativity of arrow operators "->", "=>".

Sourceval colon : t

Precedence/associativity of colon ':' operator.

Sourceval relation : t

Precedence/associativity of relation operators.

Sourceval addition : t

Precedence/associativity of addition operators.

Sourceval multiplication : t

Precedence/associativity of multiplication operators.

Sourceval application : t

Precedence/associativity of function application.

Sourceval compare : t -> t -> int

compare op1 op2 compares the precedence of the operators.

Sourceval of_string : string -> t

of_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.

Sourceval needs_parens : t option -> bool -> t -> bool

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.

Sourceval associativity : t -> assoc
Sourceval precedence : t -> int
OCaml

Innovation. Community. Security.