aqua/aqua-src/call_arrow.aqua
Dmitry Kurinskiy 12ee2d52fa
Arrow Call as a Raw Value (#461)
* CallArrowToken in the parser

* CallArrowRawTag

* unfoldArrow

* handle IntoIndexRaw for CallArrowRaw

* Removed useless CallArrowRawTag.service argument

* RawValueInliner split into several classes

* cliJS compiles

* Parser tests compile

* Semantics spec compile but fail

* Allow braces around values

* infix token WIP

* InfixToken WIP

* Fixes #423

* Infix (arithmetic) operations order

* Infix (arithmetic) operations parallelism fix

* seq it!

* fix inline test

* fix transform test

* fix semantics spec

* fix CallArrowSem

* bugfix

* Fix for CLI help typo

* merge

* Order fix

* Order fix

* optional space after `func` in closures

* some doc comments

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2022-03-25 17:23:41 +03:00

18 lines
299 B
Plaintext

module CallArrow
export order
service Experiment("exp"):
get_num: -> u32
get_arr: -> []string
--func get_num() -> u32:
-- <- Experiment.get_num()
--func by_idx() -> string:
-- x <- Experiment.get_arr()
-- <- x[Experiment.get_num()+get_num()]
func order() -> i32:
<- (5-2)*2-10+(3-1)*5