package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.2.tar.gz
sha256=203ee151ce793a977b2d3e66f8b3a0cd7a82cc7f15550c63d88cb30c71eb5f95
md5=64367c393f80ca784f88d07155da4fb0

doc/alba.core/Alba_core/Operator/index.html

Module Alba_core.OperatorSource

Sourcetype t
Sourcetype assoc =
  1. | Left
  2. | Right
  3. | No
Sourceval where : t
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.