Module arithmetic

Module arithmetic 

Source

Traits§

ParseArithmetic
Trait that parsers must implement to use arithmetic expression parsing

Functions§

parse_additive
Parse an additive expression (+ and - operators, and || for string concatenation) This handles left-associative binary operators at the additive precedence level
parse_multiplicative
Parse a multiplicative expression (*, /, % operators and method calls) This handles left-associative binary operators at the multiplicative precedence level Also handles method calls (.) which have the same precedence as multiplication