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 15:57:21 +03:00
|
|
|
multiline( -- comments
|
|
|
|
a: string, -- comments
|
|
|
|
b: string, -- comments
|
|
|
|
c: bool -- comments
|
|
|
|
) -> string -- comments
|
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 15:57:21 +03:00
|
|
|
func doStuff( -- comments
|
|
|
|
a: string, -- comments
|
|
|
|
b: string, -- comments
|
2021-06-16 11:38:49 +03:00
|
|
|
c: bool,
|
2021-06-16 15:57:21 +03:00
|
|
|
d: bool, e: []string, g: []string, str: string -- comments
|
|
|
|
) -> []string: -- comments
|
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:
|
2021-06-16 15:57:21 +03:00
|
|
|
stream <- TestS.t(gEl) -- comments
|
2021-05-04 18:49:59 +03:00
|
|
|
stream <- TestS.t(eEl)
|
|
|
|
stream <- TestS.t(eEl)
|
2021-06-16 15:57:21 +03:00
|
|
|
stream <- TestS.multiline( -- comments
|
|
|
|
a, -- comments
|
|
|
|
b, -- comments
|
|
|
|
c -- comments
|
|
|
|
) -- comments
|
2021-05-04 18:49:59 +03:00
|
|
|
<- stream
|