ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
expressionscamp.alibrc
1/// \file
2// #################################################################################################
3// ALib C++ Framework
4// Resources of ALib Camp Expressions
5//
6// Copyright 2025 A-Worx GmbH, Germany
7// Published under Boost Software License (a free software license, see LICENSE.txt)
8// #################################################################################################
9
10
11// Type names
12T_VOID Void
13T_BOOL Boolean
14T_INT Integer
15T_FLOAT Float
16T_STR String
17T_DATE DateTime
18T_DUR Duration
19
20// unary ops
21UO0 ~ 0 , NONE
22UO1 ~ 1 , +
23UO2 ~ 2 , -
24UO3 ~ 3 , !
25UO4 ~ 4 , ~
26UO5 ~ 5 , *
27
28
29// Binary ops
30BO0 ~ 0 , NONE , 0
31BO1 ~ 1 , [] , 100
32BO2 ~ 2 , * , 900
33BO3 ~ 3 , / , 900
34BO4 ~ 4 , % , 900
35BO5 ~ 5 , + , 800
36BO6 ~ 6 , - , 800
37BO7 ~ 7 , << , 700
38BO8 ~ 8 , >> , 700
39BO9 ~ 9 , < , 600
40BO10 ~ 10 , <= , 600
41BO11 ~ 11 , > , 600
42BO12 ~ 12 , >= , 600
43BO13 ~ 13 , == , 500
44BO14 ~ 14 , != , 500
45BO15 ~ 15 , & , 470
46BO16 ~ 16 , ^ , 460
47BO17 ~ 17 , | , 450
48BO18 ~ 18 , && , 440
49BO19 ~ 19 , || , 430
50BO20 ~ 20 , = , 300
51BO21 ~ 21 , ?: , 200
52
53// verbal operator aliases
54UOA0 ~ 0 , Not , !
55BOA0 ~ 0 , And , &&
56BOA1 ~ 1 , Or , ||
57BOA2 ~ 2 , Sm , <
58BOA3 ~ 3 , Smaller , <
59BOA4 ~ 4 , Smeq , <=
60BOA5 ~ 5 , Smaller_Or_Equal , <=
61BOA6 ~ 6 , Gt , >
62BOA7 ~ 7 , Greater , >
63BOA8 ~ 8 , Gteq , >=
64BOA9 ~ 9 , Greater_Or_Equal , >=
65BOA10 ~ 10 , Eq , ==
66BOA11 ~ 11 , Equals , ==
67BOA12 ~ 12 , Neq , !=
68BOA13 ~ 13 , Not_equals , !=
69
70// expression function and throw keyword
71EF "Expression I 4"
72EFT ~ throw
73
74E< expressions::
75
76// parse errors
77E0 ~ 1,SyntaxError ,ED1
78E1 ~ -1,ExpressionInfo ,ED-1
79E2 ~ -2,StdExceptionInfo ,ED-2
80E3 ~ 2,EmptyExpressionString ,ED2
81E4 ~ 5,SyntaxErrorExpectation ,ED5
82E5 ~ 6,UnknownUnaryOperatorSymbol ,ED6
83E6 ~ 7,UnknownBinaryOperatorSymbol ,ED7
84
85// compile errors
86E7 ~ 14,UnknownIdentifier ,ED14
87E8 ~ 15,UnknownFunction ,ED15
88E9 ~ -15,FunctionHint ,ED-15
89E10 ~ 16,UnaryOperatorNotDefined ,ED16
90E11 ~ 17,BinaryOperatorNotDefined ,ED17
91
92E12 ~ 22,MissingFunctionParentheses ,ED22
93E13 ~ 23,IdentifierWithFunctionParentheses ,ED23
94
95E14 ~ 25,IncompatibleTypesInConditional ,ED25
96
97E15 ~ 30,ExceptionInPlugin ,ED30
98E16 ~ 40,ExceptionInCallback ,ED40
99
100
101// nested expressions
102E17 ~ 50,NamedExpressionNotConstant ,ED50
103E18 ~ 51,NamedExpressionNotFound ,ED51
104E19 ~ 52,NestedExpressionNotFoundCT ,ED52
105E20 ~ 53,NestedExpressionCallArgumentMismatch ,ED53
106E21 ~ 54,NestedExpressionNotFoundET ,ED54
107E22 ~ -54,WhenEvaluatingNestedExpression ,ED-54
108E23 ~ 55,NestedExpressionResultTypeError ,ED55
109E24 ~ 56,CircularNestedExpressions ,ED56
110E25 ~ -56,CircularNestedExpressionsInfo ,ED-56
111E26 ~ -500,InExpressionFormatter ,ED-500
112
113ED1 Syntax error parsing expression.
114ED-1 Expression: {{{}}}\n {!F}^->
115ED-2 std::exception thrown: {!Q}.
116
117ED2 Trying to parse empty expression string.
118
119ED5 Syntax error while parsing expression{}
120ED6 Unknown unary operator {!Q'} found.
121ED7 Unknown binary operator {!Q'} found.
122
123
124ED14 Unknown identifier {!Q}.
125ED15 Unknown function '{}{}'.
126ED-15 Found function {!Q}. Arguments not applicable.
127
128ED16 Operator {!Q'} not defined for type {!Q}.
129ED17 Operator {!Q'} not defined for types {!Q} and {!Q}.
130
131
132ED22 Missing function parentheses '()' with call to function {!Q'}.
133ED23 Function parentheses '()' are not allowed on identifier {!Q'}.
134
135ED25 Incompatible types for conditional expression operator {!Q<>} : {!Q<>}.
136
137ED30 Exception caught in 'callback function' while evaluating expression {!Q}.
138
139ED40 Exception caught in 'callback function' while evaluating expression {!Q}.
140
141ED50 Expression name has to be constant, if no expression return type is given.
142ED51 Named expression {!Q} not found.
143ED52 Compile-time defined nested expression {!Q} not found.
144ED53 Erroneous arguments given with nested expression function {!Q}.
145ED54 Evaluation-time defined nested expression {!Q} not found.
146ED-54 Exception evaluating nested expression {!Q}.
147ED55 Nested expression {!Q} returned wrong result type.\nType expected: {}\nType returned: {}
148ED56 Circular nested expressions detected. Circular evaluation stack follows.
149ED-56 Expression {!Q} contains nested expression {!Q}.
150ED-500 Occurred in ExpressionFormatter expression #{}.\nof formatter string: {!Q}
151
152// exception expectation strings
153EE1 : Closing brace ')' expected.
154EE2 : Closing function parameter brace ')' expected.
155EE3 : Closing subscript brace ']' expected.
156EE4 : String literal closing quote ('\') expected.
157EE5 : Operator expected.
158EE6 : Colon ':' of conditional term expected.
159EE7 : Right-hand side binary operand expected.
160EE20 : Unexpected end of expression.
161EE21 : Misplaced closing bracket.
162EE22 : Misplaced subscript operator symbol.
163EE23 : Misplaced comma.
164
165ANON_EXPR_NAME ANONYMOUS
166
167
168// Identifier/Function names
169CPA0 ~ true " I 4"
170CPA1 ~ false " I 5"
171CPA2 ~ yes " I 3"
172CPA3 ~ no " I 2"
173CPA4 ~ on " I 2"
174CPA5 ~ off " I 3"
175CPA6 ~ Boolean " I 4"
176CPA7 ~ Integer " I 3"
177CPA8 ~ Float " I 5"
178
179CPALen ~ Length " I 3"
180
181 CPM0 ~ PI " I 2"
182 CPM1 ~ E " I 1"
183 CPM2 ~ abs " I 3"
184 CPM3 ~ ceil " I 4"
185 CPM4 ~ floor " I 5"
186 CPM5 ~ trunc " I 5"
187 CPM6 ~ round " I 5"
188 CPM7 ~ rint " I 4"
189 CPM8 ~ max " I 3"
190 CPM9 ~ min " I 3"
191CPM10 ~ remainder " I 6"
192CPM11 ~ random " I 4"
193CPM12 ~ sin " I 3"
194CPM13 ~ asin " I 4"
195CPM14 ~ cos " I 3"
196CPM15 ~ acos " I 4"
197CPM16 ~ tan " I 3"
198CPM17 ~ atan " I 4"
199CPM18 ~ sinh " I 4"
200CPM19 ~ asinh " I 5"
201CPM20 ~ cosh " I 4"
202CPM21 ~ acosh " I 5"
203CPM22 ~ tanh " I 4"
204CPM23 ~ atanh " I 5"
205CPM24 ~ exp " I 3"
206CPM25 ~ exp2 " I 4"
207CPM26 ~ exp10 " I 5"
208CPM27 ~ log " I 3"
209CPM28 ~ log2 " I 4"
210CPM29 ~ log10 " I 5"
211CPM30 ~ pow " I 3"
212CPM31 ~ pow10 " I 5"
213CPM32 ~ sqrt " I 4"
214CPM33 ~ cbrt " I 4"
215
216
217
218 CPS0 ~ NewLine " I 1 1"
219 CPS1 ~ Tabulator " I 3"
220 CPS2 ~ String " I 3"
221 CPS3 ~ WildCardMatch " I 1 1 1"
222 CPS4 ~ Format " I 6"
223 CPS5 ~ ToUpper " I 1 1"
224 CPS6 ~ ToLower " I 1 1"
225 CPS7 ~ Compare " I 4"
226 CPS8 ~ StartsWith " I 1 1"
227 CPS9 ~ EndsWith " I 1 1"
228CPS10 ~ Substring " I 4"
229CPS11 ~ IndexOf " I 3 1"
230CPS12 ~ Count " I 5"
231CPS13 ~ Trim " I 4"
232CPS14 ~ TrimStart " I 4 1"
233CPS15 ~ TrimEnd " I 4 1"
234CPS16 ~ Integer " I 3"
235CPS17 ~ Float " I 5"
236CPS18 ~ Token " I 3"
237CPS19 ~ Hexadecimal " I 3"
238CPS20 ~ Octal " I 3"
239CPS21 ~ Binary " I 3"
240CPS22 ~ Replace " I 4"
241CPS23 ~ Repeat " I 6"
242CPS24 ~ RegExMatch " I 1 1 1"
243
244 CPD0 ~ January " I 3"
245 CPD1 ~ February " I 3"
246 CPD2 ~ March " I 3"
247 CPD3 ~ April " I 3"
248 CPD4 ~ May " I 3"
249 CPD5 ~ June " I 3"
250 CPD6 ~ July " I 3"
251 CPD7 ~ August " I 3"
252 CPD8 ~ September " I 3"
253 CPD9 ~ October " I 3"
254CPD10 ~ November " I 3"
255CPD11 ~ December " I 3"
256CPD12 ~ Sunday " I 3"
257CPD13 ~ Monday " I 3"
258CPD14 ~ Tuesday " I 3"
259CPD15 ~ Wednesday " I 3"
260CPD16 ~ Thursday " I 3"
261CPD17 ~ Friday " I 3"
262CPD18 ~ Saturday " I 3"
263CPD19 ~ NanoSecondS " I 1 1 0"
264CPD20 ~ MicroSecondS " I 3 1 0"
265CPD21 ~ MilliSecondS " I 1 1 0"
266CPD22 ~ SecondS " I 3 0"
267CPD23 ~ MinuteS " I 3 0"
268CPD24 ~ Hours " I 4"
269CPD25 ~ Days " I 3"
270CPD26 ~ Weeks " I 4"
271CPD27 ~ Months " I 3"
272CPD28 ~ Years " I 4"
273CPD29 ~ InDayS " I 2 1 0"
274CPD30 ~ InHourS " I 2 1 0"
275CPD31 ~ InMinuteS " I 2 3 0"
276CPD32 ~ InSecondS " I 2 3 0"
277CPD33 ~ InMilliSecondS " I 2 1 1 0"
278CPD34 ~ InMicroSecondS " I 2 3 1 0"
279CPD35 ~ InNanoSecondS " I 2 1 1 0"
280CPD36 ~ InHertZ " I 2 1 1"
281CPD37 ~ DateTime " I 1 1"
282CPD38 ~ UtcDateTime " I 1 1 1"
283CPD39 ~ Now " I 3"
284CPD40 ~ Today " I 5"
285CPD41 ~ UtcToday " I 1 5"
286CPD42 ~ Age " I 3"
287CPD43 ~ IsOlderThan " I 2 1 1"
288CPD44 ~ GetYear " I 1 1"
289CPD45 ~ GetMonth " I 1 3"
290CPD46 ~ GetDay " I 1 1"
291CPD47 ~ GetDayOfWeek " I 1 1 1 1"
292CPD48 ~ GetHour " I 1 1"
293CPD49 ~ GetMinute " I 1 3"
294CPD50 ~ GetMilliSecond " I 1 1 1"
295CPD51 ~ GetUtcYear " I 1 1 1"
296CPD52 ~ GetUtcMonth " I 1 1 3"
297CPD53 ~ GetUtcDay " I 1 1 1"
298CPD54 ~ GetUtcDayOfWeek " I 1 1 1 1 1"
299CPD55 ~ GetUtcHour " I 1 1 1"
300CPD56 ~ GetUtcMinute " I 1 1 3"
301CPD57 ~ GetUtcMilliSecond " I 1 1 1 1"