Commit Graph

542 Commits

Author SHA1 Message Date
Dima
8c9497b9cb
#322 unclear error message if parentheses are missing (#353) 2021-11-02 17:25:34 +03:00
Dima
3c7d81ba17
#343 Compare option types properly (#354) 2021-11-02 17:18:18 +03:00
Dima
73f46c6897
Pass stream arguments to callbacks properly (#350)
* add DeclareStreamTag

* some fixes

* fix

* intersect argsToRename and streamToRename to fix excess renaming

Co-authored-by: dmitry <dmitry@fluence.one>
2021-11-02 12:26:00 +03:00
Dmitry Kurinskiy
5dd4ea6b0f
Pushing a stream into a stream (#344)
* Remove premature handling of pushing a stream into a stream

* Handling PushToStreamTag with literal tmpName

* Handling PushToStreamTag on Topology level

* Compilation bugfix

* Better handling for CanonicalizeTag

* Mutable i
2021-10-27 14:21:12 +03:00
Dmitry Kurinskiy
1bd640e773
277 implicit canonicalization for <<- stream (#339)
* Create opaque names in NamesInterpreter

* Implicit canonicalization for <<- stream

* PR fixes

* Second part of #277
2021-10-26 19:47:28 +03:00
Dima
dacf4d63dc
Fix target resolving (#336)
* fix and add test

* Update cli/src/main/scala/aqua/files/AquaFileSources.scala

Co-authored-by: folex <0xdxdy@gmail.com>

* fix PR

Co-authored-by: folex <0xdxdy@gmail.com>
Co-authored-by: Dmitry Kurinskiy <dmitry@fluence.one>
2021-10-25 22:32:25 +03:00
Dmitry Kurinskiy
836dcccc79
Wrap for par with par null (#338) 2021-10-25 18:56:09 +03:00
Dima
9933b38ded
Replace null to undefined in json to register services and functions properly (#335) 2021-10-22 00:08:08 +03:00
Dima
2f1d5a0760
Async fluence js (#334) 2021-10-21 16:47:04 +03:00
Dima
058a83fa7f
fix node_modules import (#328) 2021-10-14 12:15:42 +03:00
Dima
3844d8f2db
Run aqua code from CLI (#324) 2021-10-13 11:10:10 +03:00
Dima
4e63da83f5
Combine js and ts backends (#307) 2021-09-23 13:45:27 +03:00
Dima
f27ae5eda9
Fix version flag (#313) 2021-09-22 12:38:47 +03:00
Dima
217613321b
fix (#308) 2021-09-21 11:51:38 +03:00
Dima
aa34d04808
Add levenshtein distance to error messages, fix constant parsing (#303) 2021-09-20 15:35:45 +03:00
Dima
93dec7846c
Check service definition fields in TS and JS, fix functions and services count in output (#305) 2021-09-17 11:21:04 +03:00
Dima
b0c193a42c
Error formatting, fix dry run, fix aqua extensions in imports (#301) 2021-09-14 14:42:11 +03:00
Dima
c4248640af
ts format (#302) 2021-09-14 13:46:48 +03:00
Dima
84141bbcc4
revert to w.x.y-z (#300) 2021-09-13 13:29:35 +03:00
Dima
46a972714c
Use and export without .aqua extension, flag for a dry run, create output directories (#299) 2021-09-13 13:08:15 +03:00
Pavel
5c67987346
Adjust ts and js backend to support updated JS SDK public interface (#298) 2021-09-10 19:53:52 +03:00
Dmitry Kurinskiy
5b8a253fe7
Readme updates (#295)
* NPM installation guide in the README.md

* NPM badge

Co-authored-by: Dima <dmitry.shakhtarin@fluence.ai>
2021-09-10 17:36:21 +03:00
Dima
7362b46384
Fix incorrect resolving pushing stream from func to a value (#275) (#297) 2021-09-10 14:36:01 +03:00
Pavel
dc1f6c2faa
Fix type convertion for option type (#294) 2021-09-09 19:47:23 +03:00
Dima
49da2a07ad
fix bug (#289) 2021-09-09 15:53:13 +03:00
folex
91038851a5
CI: Add option to disable release on publish to npm (#286) 2021-09-08 19:04:59 +03:00
Pavel
68281cfca2
Add explicit any types to satisfy typescript compiler (#285) 2021-09-08 17:31:56 +03:00
Dima
7556db0a93
Use .js file in aqua command by default (#278)
* move to `aqua` and `aqua-j`

* more updates

* update readme

* aqua-cli -> aqua

* don't publish aqua as aqua-cli

* update scala

Co-authored-by: Dmitry Kurinskiy <dmitry@fluence.one>
2021-09-08 13:37:59 +03:00
Pavel
3e1618c734
Add support for the new features of JS SDK API (#251) 2021-09-08 13:16:59 +03:00
Dima
d881f5bdbe
Upper cased constants (#260) 2021-09-07 11:09:48 +03:00
Dima
621e06dd9c
Fixes version display and empty module compilation (fixes #264 #265) (#274) 2021-09-07 11:02:36 +03:00
Dima
835a7f7672
add .js to import (#267) 2021-09-03 14:37:10 +03:00
Dima
7982f04847
increase version to publish aqua-cli (#262) 2021-09-02 16:15:37 +03:00
Dima
b0d76b9631
just delete asInstanceOf (#259) 2021-09-01 13:27:25 +03:00
Dmitry Kurinskiy
3e7b11db10
Imports/exports fixes (#258)
* Fix for export in headerless file

* Ability arrow resolution bugfix

* Trying to reproduce a bug

* Allow dots in module declaration
2021-08-31 13:05:26 +03:00
Dima
bc461457da
Add JS build to package and to integration tests (#256) 2021-08-31 12:20:22 +03:00
Dima
5fd54b5656
make import flag optional (#255) 2021-08-27 16:23:52 +03:00
Dima
dae234dc5a
Performance improvement: single parser instance (#254) 2021-08-27 15:57:44 +03:00
Dmitry Kurinskiy
7e0fe470ec
Support for the new (ap instruction (#241) 2021-08-24 18:59:51 +03:00
folex
2124b88442
JS Backend: add the missing single quote (') (#252) 2021-08-24 14:51:33 +03:00
Dmitry Kurinskiy
3de8571be9
Imports bugfixes (#249) 2021-08-21 11:10:38 +03:00
Dmitry Kurinskiy
b9af20339b
Module and Use expressions (#245)
* Module and Use expressions

* UseFromExpr

* ImportFromExpr

* PubExpr

* Export, declares

* Collecting all the needed info WIP

* Got all the needed data

* Tests fixed

* HeaderSem

* HeaderSem wip

* Everything except `export`/`declares` should be working

* Compile bug fixed

* Fix readme: cli/assembly

* Handle declares, exports

* Compile only exports in AquaRes

* Call services imported from modules

* Import consts, types, services from modules

* Resolve arrows from modules

* Bugfix
2021-08-20 18:03:47 +03:00
Dima
296c64836d
Js build (#247) 2021-08-18 13:06:14 +03:00
Dima
f59a93ac27
filter non-aqua files (#246) 2021-08-18 11:49:53 +03:00
Dmitry Kurinskiy
96bc76ef2a
Separate Transform from Model (#244)
* Separate Result from Model

* Result->Transform, docs in README.md
2021-08-16 17:58:15 +03:00
Dmitry Kurinskiy
6c498b029b
Updating compiler backends (#243)
* Updating compiler backends: add FuncRes

* TypeScriptService

* ServiceRes
2021-08-16 16:59:36 +03:00
folex
38fb824b68
CI: publish to NPM as 'aqua' & 'aqua-cli' (#242) 2021-08-13 19:16:14 +03:00
folex
3d85f54580
JAR=cli/.jvm/target/... (#240)
Since we moved to JVM + JS crossbuilds, JVM artifacts are now placed under .jvm/target
2021-08-12 15:06:41 +03:00
Dima
e2da2e90d7
Crossprojects for JVM and JS platforms (#237) 2021-08-11 19:53:36 +03:00
folex
50aa4db4e8
CI: Do not trigger releases on push (#239) 2021-08-11 18:22:52 +03:00