aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/expression_parser.messages
blob: ff7e7573e7b3211e8e6ca9231b27ca78735d3d81 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
column_expr:    R_PAREN
##

Invalid expression

path_expr:      IDENT R_PAREN
column_expr:    IDENT R_PAREN
column_expr:    IDENT L_PAREN IDENT R_PAREN
path_expr:      IDENT L_PAREN IDENT R_PAREN
##

Misplaced function. Did you forgot to quote the text ?

column_expr:    IDENT L_PAREN EOF
path_expr:      IDENT L_PAREN EOF
##

Uncomplete expression

column_expr:    COLUMN R_PAREN
path_expr:      COLUMN R_PAREN
##

The path is missing.

column_expr:    LITERAL CONCAT_OPERATOR LITERAL L_PAREN
path_expr:      LITERAL CONCAT_OPERATOR LITERAL L_PAREN
path_expr:      LITERAL L_PAREN
column_expr:    LITERAL CONCAT_OPERATOR LITERAL BINARY_OPERATOR LITERAL L_PAREN
path_expr:      LITERAL CONCAT_OPERATOR LITERAL BINARY_OPERATOR LITERAL L_PAREN
column_expr:    LITERAL CONCAT_OPERATOR LITERAL CONCAT_OPERATOR LITERAL L_PAREN
path_expr:      LITERAL CONCAT_OPERATOR LITERAL CONCAT_OPERATOR LITERAL L_PAREN
column_expr:    IDENT L_PAREN L_PAREN LITERAL L_PAREN
path_expr:      IDENT L_PAREN LITERAL L_PAREN
##

A text is given where it was expected a function.

column_expr:    LITERAL CONCAT_OPERATOR IDENT L_PAREN L_BRACKET R_BRACKET COMA R_PAREN
column_expr:    IDENT L_PAREN L_BRACKET R_BRACKET COMA R_PAREN
path_expr:      IDENT L_PAREN L_BRACKET R_BRACKET COMA R_PAREN
path_expr:      LITERAL BINARY_OPERATOR IDENT L_PAREN L_BRACKET R_BRACKET COMA R_PAREN
##
## Ends in an error in state: 61.
##
## separated_nonempty_list(COMA,expr_(path_,COMA)) -> expr_(path_,COMA) COMA . separated_nonempty_list(COMA,expr_(path_,COMA)) [ R_PAREN ]
##
## The known suffix of the stack is as follows:
## expr_(path_,COMA) COMA
##

Uncomplete expression

column_expr:    IDENT L_PAREN LITERAL COMA R_PAREN
path_expr:      IDENT L_PAREN LITERAL COMA R_PAREN

Misplaced coma

column_expr: IDENT L_PAREN LITERAL EOF
column_expr: LITERAL CONCAT_OPERATOR IDENT L_PAREN EOF
path_expr:   LITERAL CONCAT_OPERATOR IDENT L_PAREN EOF
path_expr:   IDENT L_PAREN L_PAREN LITERAL EOF
## 

Uncomplete expression. Did you forgot a ')' ?


column_expr:    LITERAL R_PAREN
path_expr:      LITERAL BINARY_OPERATOR LITERAL R_PAREN
##

Invalid expression

path_expr: COLUMN IDENT L_PAREN
##
# Also apply to :
# path_expr: COLUMN IDENT COLUMN

Misplaced path

path_expr: COLUMN IDENT DOT R_PAREN
##

Incomplete path: the table is missing

column_expr:    INTEGER  BINARY_OPERATOR INTEGER R_PAREN
##

Unbalanced parens. Did you wanted to write ')' instead of '(' ?


path_expr:      IDENT L_PAREN L_BRACKET LITERAL R_PAREN

Unbalanced brackets. Did you wanted to write ']' instead of ')' ?

column_expr:    IDENT L_PAREN LITERAL CONCAT_OPERATOR R_PAREN
path_expr:      IDENT L_PAREN LITERAL CONCAT_OPERATOR R_PAREN
column_expr:    LITERAL CONCAT_OPERATOR R_PAREN
path_expr:      LITERAL CONCAT_OPERATOR R_PAREN
column_expr:    IDENT L_PAREN LITERAL BINARY_OPERATOR R_PAREN
path_expr:      IDENT L_PAREN LITERAL BINARY_OPERATOR R_PAREN
column_expr:    LITERAL BINARY_OPERATOR R_PAREN
path_expr:      LITERAL BINARY_OPERATOR R_PAREN
column_expr:    INTEGER EQUALITY_OPERATOR R_PAREN
path_expr:      INTEGER EQUALITY_OPERATOR R_PAREN
column_expr:    INTEGER INEQUALITY_OPERATOR R_PAREN
path_expr:      INTEGER INEQUALITY_OPERATOR R_PAREN
column_expr:    INTEGER EQUALITY_OPERATOR INTEGER INEQUALITY_OPERATOR R_PAREN
path_expr:      INTEGER EQUALITY_OPERATOR INTEGER INEQUALITY_OPERATOR R_PAREN
column_expr:    INTEGER EQUALITY_OPERATOR INTEGER EQUALITY_OPERATOR R_PAREN
path_expr:      INTEGER EQUALITY_OPERATOR INTEGER EQUALITY_OPERATOR R_PAREN

The operator expect two arguments. Only one is given

column_expr: IDENT L_PAREN L_BRACKET R_PAREN
path_expr:   IDENT L_PAREN L_BRACKET R_PAREN
column_expr: IDENT L_PAREN L_BRACKET LITERAL R_PAREN
column_expr: LITERAL CONCAT_OPERATOR IDENT L_PAREN L_BRACKET R_BRACKET COMA L_BRACKET R_BRACKET R_BRACKET
path_expr:   INTEGER  CONCAT_OPERATOR IDENT L_PAREN L_BRACKET R_BRACKET COMA L_BRACKET R_BRACKET R_BRACKET
path_expr:   IDENT L_PAREN L_BRACKET R_BRACKET COMA L_BRACKET R_BRACKET R_BRACKET

Mix between brackets and parens.
o">KC_DEL: return true; case KC_SPACE: // The space key is used in order to generate the _ symbol, // I check which modifier is applied, it’s ok when it’s ALT return get_mods() & MOD_MASK_ALT; default: return false; // Deactivate Caps Word. } } uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case KEY_E: return 230; case LT_SFT: return 250; case KEY_EE: return 350; default: return TAPPING_TERM; } } static uint32_t key_timer; // timer for last keyboard activity, use // 32bit value and function to make longer // idle time possible static uint16_t latest_key; bool process_record_user(uint16_t keycode, keyrecord_t *record) { if (!record->event.pressed) { // store time of last key release. This is used as a counter in order to // know if we are inside a typing sequence or not. key_timer = timer_read32(); latest_key = keycode; } switch (keycode) { case AL_ENT: if (layer_state_is(LAYER_SYMBOLS) && !record->event.pressed) { // Remove the layer the key is released. layer_clear(); } return true; // Let QMK send the enter press/release events // If a key where released just before, consider we are typing some text // and not starting a new sequence case KEY_E: if (record->event.pressed && timer_elapsed32(key_timer) < TAPPING_TERM) { register_code(BP_E); return false; } return true; case KEY_T: if (record->event.pressed && timer_elapsed32(key_timer) < TAPPING_TERM) { register_code(BP_T); return false; } return true; // Here, the key KC_BSPC become È when used inside a sequence, but we still // allow the repetition of KC_BSPC. case KC_BSPC: if (record->event.pressed \ && timer_elapsed32(key_timer) < (TAPPING_TERM / 2) \ && latest_key != keycode) { // I completely rewrite the key here, that’s why I’m using tap_code16 // instead of register_code. tap_code16(BP_EGRV); return false; } return true; default: return true; // Process all other keycodes normally } }