Commit Graph

53 Commits

Author SHA1 Message Date
Tom Tromey
9b178e0b77 Fix 'build' in lang_template/Makefile
"make" in lang_template/ fails, because the invocation of manage.py is
wrong.  The "make" command there must come first, and
--no-langkit-support does not appear to be a valid option.
2021-01-13 09:29:40 -05:00
Quentin Ochem
97a1160eb1 Implemented support to p_base_type for #9
This is a partial implementation, requires support to libadalang array to support
the version returning arrays.
Properties were handled as fields. They are now implemented as function. This required
to update various places where properties were used like predicates, and use the
filter function instead.
Filter is fixed, doesn't fail anymore in case of a non-matching prefix in a matching
call, and properly sets 'it' and reset the yield callback when matching the expression.
Regular expressions were possibly interrupting the outer iteration when matching
before generation of values - now fixed.
2020-09-05 23:06:09 -04:00
Raphaël AMIARD
72c3baab1e Strip whitespace 2020-09-01 11:06:35 +02:00
Quentin Ochem
9b02ba2851 Implemented and take advante of walk command 2020-08-28 16:13:35 -04:00
Quentin Ochem
d5c7c689ec Fixed handling of many qualifier
Expressions ending with a qualifier were invalid.
Also added support for subexpression processing.
2020-08-27 14:28:28 -04:00
Quentin Ochem
ac19dbac3f Further progress with implementation of regexpr capture groups. 2020-08-27 13:00:37 -04:00
Quentin Ochem
907097bab2 Started implementation of node regexpr capture groups
Also consistenly renamed "expand" into "yield".
2020-08-25 14:42:31 -04:00
QuentinOchem
c5ea57cc42 fixed permissions 2020-08-24 11:05:54 -04:00
Quentin Ochem
18e7f9fef2 Added relationship operators in parser. 2020-08-21 16:14:32 -04:00
Quentin Ochem
fc8255bc80 Fixed reg expr in filters. 2020-08-20 13:27:12 -04:00
Quentin Ochem
0f967db09b Renamed lambda into defer
This allows to show the proximity of now-called deferred expression and deferred
commands in the language.
2020-08-20 12:56:58 -04:00
Quentin Ochem
4155171d36 Initial implementation of filters. 2020-08-19 13:10:33 -04:00
Quentin Ochem
6d576c19b9 Modified previous check-in, defer is now a property of all commands 2020-08-16 12:23:23 -04:00
Quentin Ochem
1b66fb8c5d Initial implementation of deferred commands. 2020-08-16 10:58:56 -04:00
Quentin Ochem
b2752421dd Modified else syntax.
Now needs to be part of a do block.
Introduced elsmatch for alternates before else.
Renamed "function_or_procedure" to "subp_kind" in ada wrappers.
2020-08-15 22:11:25 -04:00
Quentin Ochem
fd538aa791 Fixed core tests following merge of templates and visitors concepts. 2020-08-02 22:40:10 -04:00
Quentin Ochem
8cfa8650dc Started to merge template and visitor concepts.
Template can now both handle variable creation and command sequence.
They become essentially a command that can be instantiated.
Concept of command variable is being expanded to fit templates needs.
2020-08-01 22:24:46 -04:00
QuentinOchem
f52864cac0 Fixed builds on recent langkit and linux. 2020-07-30 11:50:34 -04:00
Quentin Ochem
22b0007f35 Initial implementation of functions. 2020-07-29 22:27:32 -04:00
Quentin Ochem
b8a5df7c54 Implemented match expressions.
Also started work on functions (implemented parser).
2020-07-29 16:24:19 -04:00
Quentin Ochem
eea2ca60d3 Removed pattern concept, replaced by default initialization. 2020-07-27 16:55:34 -04:00
Quentin Ochem
ddeb92aeaa Implemented string prefixes.
By defaults strings are now simple strings.
They can be turned to regexp with x or raw string with r.
Indentation is now handled globally with an i prefix.
2020-07-27 15:40:18 -04:00
Quentin Ochem
a0c15f89a3 Initial implementation of indentation support.
Also added an optional parameter to fold for separators.
2020-07-24 10:40:05 -04:00
Quentin Ochem
28d8f1bb3e Started implementation of integer support. 2020-07-23 13:29:28 -04:00
Quentin Ochem
2976eaaeed First step implementing regular expressions on nodes. 2020-07-16 18:54:55 -04:00