Commit Graph

11 Commits

Author SHA1 Message Date
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
Raphaël AMIARD
ede794d5aa RA22-015: update langkit vim syntax 2020-06-30 15:43:53 +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
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
Raphaël AMIARD
020642ebcc RA22-015: update langkit.vim file 2020-02-27 17:05:43 +01:00
Romain Beguet
3937ee56ac Minor: Add vim langkit syntax file. 2020-02-12 14:56:10 +01:00