12 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
6e88d6ec25 Lkt: revamp the module system 2026-01-20 16:03:43 +00:00
Pierre-Marie de Rodat
6cefc74c93 Set up pre-commit checks and reformat the Python sources with black 2025-03-26 14:04:20 +00:00
Pierre-Marie de Rodat
e1c4fe5804 Introduce the lkt_build_and_run test driver
Transition all relevant testcases to it. In the process, port
docstrings/comments from test.py files to expected_concrete_syntax.lkt
(now test.lkt) sources and fix stylechecks issues there.
2024-10-15 14:13:10 +00:00
Romain Beguet
05362a5e93 Improve style and fix formatting issues in dsl_unparse. 2024-07-03 08:23:35 +00:00
Pierre-Marie de Rodat
eb36d66f4f Lkt: rename @export to @exported 2024-06-19 10:18:02 +00:00
Pierre-Marie de Rodat
1ffd449060 langkit.dsl_unparse: rework empty lines emitted for properties 2023-12-13 13:55:11 +00:00
Pierre-Marie de Rodat
f75832df8a langkit.dsl_unparse: minor style tweaks 2023-12-13 13:55:06 +00:00
Pierre-Marie de Rodat
7698a8d111 dsl_unparse: remove spurious line break in grammars
For GitLab issue #612
2022-05-17 11:52:36 +02:00
Pierre-Marie de Rodat
11ab0daea6 dsl_unparse: add an empty line after import statements
This makes the output sources more readable.

For GitLab issue #612
2022-05-17 11:52:36 +02:00
Pierre-Marie de Rodat
5e6e76439d langkit.lkt_lowering: fix handling of built-in property calls
This makes it possible to lower String.join method calls: enable the
corresponding test.

TN: UA05-027
2021-10-18 11:46:46 +02:00
Pierre-Marie de Rodat
c52892e476 prelude.lkt: add the "join" String built-in primitive
TN: UA05-027
2021-10-18 11:46:46 +02:00
Pierre-Marie de Rodat
ae43d8bef1 Introduce a "join" builtin property for arrays of strings
While it is currently quite easy to implement such a property in the DSL
directly (.mapcat on a String.array), an upcoming commit will introduce
an opaque String type, making it much less convenient (replace a simple
.mapcat with a recursive property). Since this feature is generally
useful, just add a builtin property for it.

TN: UA05-027
2021-10-18 11:46:46 +02:00