Commit Graph

18 Commits

Author SHA1 Message Date
Quentin Ochem
23a4523017 Updated tests and runtime to new string semantics (#11) 2020-09-14 21:58:50 -04: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
f8ec4185be Switch 'self' to 'it'
The usage of the word 'self' to refer to the current iteration became increasingly
confusing with the usual OOP counterpart, in particular because its value can change
in a single expression, independendly of the surrounding object. See previous check
in that uncovered its usage in the fold function.
2020-08-23 22:03:48 -04:00
Quentin Ochem
479c586ad7 Updated usage of fold
Aggregator are actually computed in an interation, take advantage
of that fact to avoid having to expressed captured value.
2020-08-23 21:31:20 -04:00
Quentin Ochem
1e45c2139f Finalized proxy demonstrator. 2020-08-20 23:33:39 -04:00
Quentin Ochem
2cbc6a1008 Updated proxy generation to latest changes
Also simplified ada2proxy tests, now only checking compilation.
Added simple_record test from ada to proxy.
2020-08-20 21:39:11 -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
493a7bd65f Making progress with proxy implementation
Overhall of the wrapper files to create a more systematic approach.
Proxy tests are currently broken.
2020-08-16 22:41:53 -04:00
Quentin Ochem
cdcc00fb91 Making progress with proxy generation for Ada records.
Also added assertions in core engine to find errors earlier.
2020-08-04 22:26:38 -04:00
Quentin Ochem
f856489683 Fixed ada2cs/int_parameter test. 2020-08-04 19:10:01 -04:00
Quentin Ochem
663d574833 Fixed ada2proxy/int_parameter test
Also started to work on record support.
2020-08-04 19:05:24 -04:00
Quentin Ochem
e8f02d5d6f Making progress with support of simple proxy records. 2020-07-31 16:19:22 -04:00
Quentin Ochem
5ef7e43fa1 Updated templates using default init intead of weaving. 2020-07-31 10:44:39 -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
a2ad9cb113 Initial demonstrator for C# proxy. 2020-07-26 21:59:32 -04:00
Quentin Ochem
454c127da9 Started development of proxy binding support. 2020-07-25 12:11:29 -04:00