-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding_powers.json
40 lines (40 loc) · 1.1 KB
/
binding_powers.json
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
{
"#Comments": [
"Binding powers, to be used with basic parsers. JSON format.",
"-----------------------------------------------------------",
"Place prefix operators in RBP, postfix operators in LBP, infix",
"operators in both LBP and RBP. All LBP and RBP values specified here",
"should be integers in range 6 to 99.",
"Tokens (in particular operator names) may consist of alphanumeric",
"characters or special characters, but not a mix of both.",
"'(', ')', ':', '_' (parentheses, colon, underscore) are treated as",
"alphanumeric characters because they are used in generated operator",
"names (see options -r and -d).",
"Tokens must not contain whitespace, backslashes, single or double",
"quotes."
],
"LBP": {
"and": 8,
"+": 14,
"-": 14,
"*": 17,
"/": 17,
"^": 21,
"!": 22,
"%": 10,
">": 12,
":=": 20
},
"RBP": {
"and": 9,
"+": 15,
"-": 15,
"*": 18,
"/": 18,
"^": 20,
"not": 9,
"&": 9,
">": 13,
":=": 7
}
}