package alba

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.