Commit Graph

171 Commits

Author SHA1 Message Date
Dmitry Kurinskiy
6f6299e035
Simple opt-as-an-array fix (#149)
* Simple opt-as-an-array fix

* Last error model

* Test fixed
2021-06-03 10:16:07 +03:00
Dmitry Kurinskiy
807c26619f
108 option type (#146)
* Option type support: arguments, values

* Aqua version 0.1.4

* Fix for optional return value in TS

* Tiny fixes

* Example for declaring local options
2021-06-02 12:29:12 +03:00
Dmitry Kurinskiy
378d154ff7
Added bang op to get array items by index (#144) 2021-06-01 20:07:09 +03:00
Dmitry Kurinskiy
58132b8d8b
Try expression added (#132)
* Try expression added

* Increment `baseAquaVersion` due to syntax change.
2021-05-27 14:13:38 +03:00
Dmitry Kurinskiy
450fe4e142
Fixes #86 (#107) 2021-05-04 12:09:27 +03:00
Dmitry Kurinskiy
85cc40fa5e
Wrap every OnTag (topological shift) with Xor (#109) 2021-05-04 11:58:25 +03:00
Dmitry Kurinskiy
231cd2a9d0
Fixes #99: use impossible name for relay (#103) 2021-04-30 11:51:55 +03:00
Dmitry Kurinskiy
53ad29ab31
Config options to omit xor wrapper, relay passing (#105) 2021-04-30 11:43:48 +03:00
Dmitry Kurinskiy
1fc5557ba6
Topology refactoring (#100)
* Topology refactoring

* TransformSpec fixed & improved

* Fixes #98

* Better Par handling

* Introduced Cursor class

* Better exit process for par branch

* Force move to target peer when exiting from a par branch
2021-04-29 14:16:25 +03:00
Dmitry Kurinskiy
27f2912c5f
Streams support (#87)
* #29 going to support streams

* Added StreamName

* StreamName removed

* Streams support works

* Debug println removed

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2021-04-27 16:59:12 +03:00
Dmitry Kurinskiy
d88b3a561c
Fix using par after xor: xor handled first now (#93)
* Script with crazy wrong output

* Xor can be combined with Par
2021-04-23 17:49:26 +03:00
Dmitry Kurinskiy
7991ab0b4d
Fixes bug with loosing a callback (#92)
* Fixes bug with loosing a callback

* Avoid passing unneeded arrows
2021-04-23 17:15:27 +03:00
Dmitry Kurinskiy
453b95b8ae
Better topology resolution (#89)
* Better topology resolution

* error example

* par added

* revert

* Test fixed
2021-04-23 14:04:21 +03:00
Dmitry Kurinskiy
a5afe1c6fa
Bugfix for ScriptModel (#88)
* Bugfix for ScriptModel

* Println error for unresolved functions
2021-04-23 12:25:21 +03:00
Dima
ca8e3bfa40
Constant expr (#79) 2021-04-22 16:42:08 +03:00
Dmitry Kurinskiy
433b464a36
67 plain air gen (#78)
* Refactoring ForClient to make its parts reusable/recomposable

* Func transformation decomposed into parts

* Improves AIR compilation target
2021-04-20 16:44:06 +03:00
Dmitry Kurinskiy
7512648cd0
69 wrong varnames (#74)
* Bug #69 reproduced in test

* Bug #69 reproduced in a test

* Fixes #47 (allow arg names in service function definitions)

* ServiceModel

* AbilityModel is removed, as it's unused

* Fixes #65: expose %init_peer_id% as a literal

* Removed FuncResolved, as it's not resolved actually

* Fixes #69

* Helpers for func op showing & building

* Compile bug fixed

* Comments

* Removed ScriptModel.enqueue
2021-04-19 16:22:45 +03:00
Dmitry Kurinskiy
e2621f0008
Fixes #68 :fix return using relay (#72)
* Added test & some test routines

* Test usability improvements

* Failing script

* Failing test for #68

* Fix topology in case of a sequence of calls

* Formatting

* Formatting
2021-04-16 20:15:45 +03:00
Dima
c8869eb2b4
Add header to .ts files that this is generated files (#70)
* add header

* rewrite
2021-04-16 20:13:56 +03:00
Dima
8e04348ffa
Fix release, add xor wrap (#51) 2021-04-13 13:37:03 +03:00
Dmitry Kurinskiy
0de43b470e
39 fix callbacks (#43)
* Project layout reorganized

* Topology resolution extracted to a separate file

* FuncResolved class

* aqua.model.transform

* Basic bubbling

* Get more context into topology resolver

* Failing Topology test

* Get back in seq

* OnTag.via: List changed to Chain, as via is reversed and concatenated quite frequently
2021-04-06 19:01:25 +03:00