1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright © 2025 Stephan Kunz
//! Precedence definitions for the Pratt-[`Parser`](crate::compilation::Parser)
//!
//! Defines the different precedence levels used by the infix parsers.
//! These determine how a series of infix expressions will be grouped.
//! For example, "a + b * c - d" will be parsed as "(a + (b * c)) - d"
//! because "*" has higher precedence than "+" and "-".
//! Inn case of same precedence the source is parsed from left to right.
//! Here a bigger enum value is higher precedence.
/// Precedence levels