2021-04-14 17:23:42 +03:00
|
|
|
import "helloWorld.aqua"
|
|
|
|
import "println.aqua"
|
2021-06-01 19:41:30 +03:00
|
|
|
import "@fluencelabs/aqua-lib/builtin.aqua"
|
2021-04-14 17:23:42 +03:00
|
|
|
import "func.aqua"
|
|
|
|
|
2021-05-04 18:49:59 +03:00
|
|
|
service TestS("some-id"):
|
|
|
|
t: string -> string
|
2021-06-16 11:38:49 +03:00
|
|
|
multiline(a: string,
|
|
|
|
b: string,
|
|
|
|
c: bool) -> string
|
2021-05-04 18:49:59 +03:00
|
|
|
|
2021-04-15 12:30:42 +03:00
|
|
|
-- just a lot of imports and calls
|
2021-06-16 11:38:49 +03:00
|
|
|
func doStuff(a: string,
|
|
|
|
b: string,
|
|
|
|
c: bool,
|
|
|
|
d: bool, e: []string, g: []string, str: string) -> []string:
|
2021-05-04 18:49:59 +03:00
|
|
|
stream: *string
|
|
|
|
stream <- TestS.t(str)
|
|
|
|
par Println.print(a)
|
2021-04-14 17:23:42 +03:00
|
|
|
par on a:
|
2021-04-14 17:32:01 +03:00
|
|
|
Peer.identify()
|
2021-05-04 18:49:59 +03:00
|
|
|
on a:
|
|
|
|
on b:
|
|
|
|
if c:
|
|
|
|
if d:
|
|
|
|
for eEl <- e:
|
|
|
|
for gEl <- g:
|
|
|
|
stream <- TestS.t(gEl)
|
|
|
|
stream <- TestS.t(eEl)
|
|
|
|
stream <- TestS.t(eEl)
|
2021-06-16 11:38:49 +03:00
|
|
|
stream <- TestS.multiline(a,
|
|
|
|
b,
|
|
|
|
c)
|
2021-05-04 18:49:59 +03:00
|
|
|
<- stream
|