Pascal Obry
cbc31cd2cd
New filter IS_FIRST_OCCURRENCE.
...
This new filter can be used to do a specific action the first time
a variable value is found. While generating code, this can be handy
to avoid generating the same declaration twice for example.
Add regression test and documentation.
Part of eng/toolchain/aws#77
2025-01-27 18:08:09 +01:00
Pascal Obry
f2067e4d0d
Fix handling of macro parameters in EXTENDS & INLINE.
...
TN eng/toolchain/templates-parser#5
2024-12-10 18:03:21 +01:00
Pascal Obry
f2d4830244
Minor code reformatting.
2024-12-10 17:59:02 +01:00
Pascal Obry
7bc8a2b023
Ensure that the regexp/regpat is cloned.
...
Fix crash reported when releasing MATCH filter in macros.
Add corresponding regression test.
Part of eng/toolchain/aws#39
2024-08-21 18:12:08 -04:00
Pascal Obry
6f4e561f23
Add START_WITH and END_WITH filter.
...
Add corresponding regression tests and documentation.
Motivated by eng/toolchain/aws#39
2024-08-21 18:12:08 -04:00
Pascal Obry
5e15c8f6fc
Minor code simplification.
...
no-tn-check
2024-08-17 08:27:56 -04:00
Pascal Obry
38ccfe2143
Use Ada 2022 @ short hand syntax.
2024-05-02 18:09:49 +02:00
Pascal Obry
d12197cda9
Use Ada 2022 delta aggregate.
2024-05-02 18:09:49 +02:00
Pascal Obry
60431b6405
Use Ada 2022 @ short hand syntax.
2024-05-02 18:09:49 +02:00
Pascal Obry
b6f03f9372
Use Ada 2022 array aggregate syntax.
2024-05-02 18:09:49 +02:00
Pascal Obry
d5a41cf7a4
Revert all Ada 2022 changes.
2024-03-14 23:23:09 +01:00
Pascal Obry
f581587cc9
Use Ada 2022 @ short hand syntax.
2024-03-14 17:08:59 +00:00
Pascal Obry
32768c94c7
Use Ada 2022 delta aggregate.
2024-03-14 17:08:59 +00:00
Pascal Obry
c2d389d1a9
Minor code clean-up and reformatting.
2024-03-14 17:08:59 +00:00
Pascal Obry
ce2f694b50
Use Ada 2022 @ short hand syntax.
2024-03-14 17:08:59 +00:00
Pascal Obry
a1b25da130
Use Ada 2022 array aggregate syntax.
2024-03-14 17:08:59 +00:00
Pascal Obry
6f0a6ff2dd
Implement '&' operator between two Translate_Set.
...
Add corresponding regression test.
TN: eng/toolchain/templates-parser#4
2024-01-12 08:43:18 +01:00
Pascal Obry
53f95cffde
Fix handling of cursor tag of dimension 1 and length 1.
...
Cursor tag of dimension 1 and length 1 should be processed
as standard tag instead of being ignored.
Add corresponding regression test.
Fixes eng/toolchain/templates-parser#3
2023-12-08 17:51:22 +01:00
Pascal Obry
53cff2e1a8
Add default & alternate filters.
...
Add corresponding regression test and documentation.
2022-12-20 16:04:12 +01:00
Pascal Obry
8c2ba5dbd8
Minor reformatting.
2022-12-20 16:04:12 +01:00
Nicolas Boulenguez
3eb67d32ad
Avoid old ISO-8859 encoding in Ada sources
2022-12-14 09:39:59 +01:00
Pascal Obry
4284e33e3c
Fix MACRO tree rewrite.
...
We do not want to change the tree node in if conditional. Only
the TEXT nodes' values are to be changed.
Add corresponding regression test.
Found while working on V531-036.
2022-11-23 13:06:35 +01:00
Pascal Obry
9986f5a15b
Better output for the MACRO in print-tree.
...
Add all INLINE separators. Properly indent the END_INLINE.
2022-11-23 13:06:35 +01:00
Pascal Obry
50ae7d9f03
Minor reformatting.
2022-11-23 13:06:35 +01:00
Nicolas Setton
2e771e553a
Add a missing assignment
...
This solves a potential access to uninitialized variable
when processing an @@INLINE@@ statement.
2022-01-28 14:37:04 +00:00