44 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
b46f76d218 Lkt: introduce syntax for new import clauses 2026-01-20 16:03:43 +00:00
Pierre-Marie de Rodat
021f6a0998 langkit.vim: tidy up keywords 2026-01-20 16:03:43 +00:00
Raphaël AMIARD
4f6faa70f2 Extend lkt vim syntax file to properly rewrap docstrings&comments 2025-05-23 07:18:07 +00:00
Pierre-Marie de Rodat
8ead9b2b33 Transition Python bindings packaging from "setup.py" to "pyproject.toml"
"setup.py" scripts are obsolete at this stage: they are still supposed
to work, but as recent events demonstrate
(https://github.com/pypa/pip/issues/11975), various problems are bound
to appear more and more frequently. Transition to newer systems
(pyproject.toml + the "build" front-end), hoping to avoid such issues in
the future.
2025-05-21 11:56:54 +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
928e4358fc Lkt: rework the syntax for the logic DSL
Replace `%eq(a, b)` with:

* `a <-> b`: unify two logic variables
* `a <- b`: assign a value to a logic variable

Replace `%eq(a, b, conv_prop=N.p)` with:

* `a <- N.p%(...)`: assign a value to a logic variable after a
  conversion/combination using a property from 1) one or multiple logic
  variables or 2) an entity:

Replace `%predicate(N.p, ...)` with:

* `N.p%(...)`: create a predicate atom from a property, several logic
  variables and optional extra arguments.
2024-09-17 11:43:48 +00:00
Pierre-Marie de Rodat
687a138cbb Lkt: introduce block strings and replace doc comments with them 2024-03-15 15:49:02 +00:00
Pierre-Marie de Rodat
d8f032ed49 langkit.vim: add "not" as an operator 2023-12-13 13:55:10 +00:00
Pierre-Marie de Rodat
aaa08b16c9 langkit.vim: add the "try" keyword 2023-12-13 13:36:33 +00:00
Pierre-Marie de Rodat
e6c9e150d5 Lkt: add support for dynamic variables
This commit introduces full support for dynamic variables in Lkt:

* new syntax for declaration: `dynvar my_var: MyType`;
* new annotation to require it at property call:
  `@with_dynvars(my_var)`;
* associated unparsing and lowering code.
2023-12-13 13:36:32 +00:00
Pierre-Marie de Rodat
d478a811d2 langkit/templates/java_api: add syntax highlighting directives for Vim 2023-07-03 09:17:51 +00:00
Pierre-Marie de Rodat
42c1cbe210 utils/release-langkit_support.sh: update for 23.0 2022-11-02 09:11:42 +00:00
Pierre-Marie de Rodat
c5452f85eb Add a script to create a release source package for Langkit_Support
TN: TA19-011
2021-10-27 17:06:30 +02:00
Pierre-Marie de Rodat
eb01f28b04 gh_wrap_errors.py: make sure all output is processed
The current select-based code to consume subprocess output on the fly
sometimes misses the end of the output. Rework it to consume mixed
stdout+stderr until the end of output instead.
2020-10-20 17:18:03 +02:00
Raphaël AMIARD
45df941275 Replace Travis by GH actions 2020-10-15 13:55:27 +02:00
Raphaël AMIARD
ede794d5aa RA22-015: update langkit vim syntax 2020-06-30 15:43:53 +02:00
Pierre-Marie de Rodat
e549451937 Travis CI: run type checking using mypy
TN: RA22-015
2020-06-17 11:45:07 +02:00
Raphaël AMIARD
3613e38a24 RA22-015: Transition manage.sh to python
Easier to maintain and to extend.
2020-06-04 15:39:21 +02:00
Pierre-Marie de Rodat
b2a3f822d7 Travis CI: use e3-testsuite's --failure-exit-code option
TN: T511-017
2020-06-04 11:33:41 +02:00
Pierre-Marie de Rodat
b387f52dbf Testsuite: remove the obsolete "--discriminant" option
TN: T511-017
2020-06-04 11:33:41 +02:00
Raphaël AMIARD
9ff1b97499 RA22-015: Add support for character literals 2020-06-02 12:25:47 +02:00
Pierre-Marie de Rodat
ec953cb1ff utils/travis-script.sh: update error patterns for testsuite logs
Now that the testsuite is based on e3.testsuite, error patterns are
different.

TN: T511-017
2020-05-26 16:58:32 +02:00
Pierre-Marie de Rodat
aeb3511b66 utils/travis-install.sh: install the testsuite framework
TN: T511-017
2020-05-26 16:58:32 +02:00
Pierre-Marie de Rodat
7a5b31b524 langkit.vim: fix handling of quote escapes in string literals
TN: RA22-015
2020-03-27 14:07:00 +01:00
Raphaël AMIARD
ba6bed4225 RA22-015: Add traits 2020-03-19 10:33:51 +01:00