mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
12ee2d52fa
* 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>
18 lines
299 B
Plaintext
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 |