Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
PratterSourceThis modules defines a functor whose image is a parser for terms with applications, infix, prefix or postfix operators. These terms are specified in the argument of the functor.
The algorithm implemented is an extension of the Pratt parser. The Shunting Yard algorithm could also be used.
Associativity of an operator.
Priority of operators, also called binding power. If * has a higher priority than +, than x + y * z is parsed x + (y * z).
type operator = | Infix of associativityInfix operator with an associativity.
*)| Prefix| PostfixA type to designate operators and their properties.