-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(e2e,examples): everything fixed except filter list example
- Loading branch information
Showing
13 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { io } | ||
|
||
def Main(start any) (stop any) { | ||
[:start, :start] -> :stop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { fmt } | ||
|
||
const l list<int> = [1, 2, 3] | ||
|
||
def Main(start) (stop) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { fmt } | ||
|
||
const x float = 42 | ||
|
||
def Main(start) (stop) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { regexp } | ||
import { regexp, fmt } | ||
|
||
def Main(start) (stop) { | ||
fmt.Println, regexp.Submatch, Panic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { fmt } | ||
|
||
def Main(start) (stop) { | ||
fmt.Println | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { time } | ||
import { time, fmt } | ||
|
||
def Main(start) (stop) { | ||
p1 fmt.Println | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { fmt } | ||
|
||
def Main(start) (stop) { | ||
Foo, fmt.Println<int> | ||
--- | ||
:start -> foo:sig | ||
foo:msg.a -> println:data | ||
foo:msg -> .a -> println:data | ||
println:sig -> :stop | ||
} | ||
|
||
const s struct { a int } = { a: 42 } | ||
|
||
def Foo(sig any) (msg struct{a int}) { | ||
:sig -> { $s -> :msg } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { fmt } | ||
|
||
// Here we learn how to read struct field | ||
// by using builtin def with compiler directive. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
import { fmt } | ||
|
||
const lst list<int> = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
|
||
def Main(start) (stop) { | ||
ListToStream, Filter{Even}, For{fmt.Println}, Wait | ||
--- | ||
:start -> { | ||
$lst -> listToStream -> filter -> for -> wait -> :stop | ||
} | ||
} | ||
|
||
def Even(data int) (res bool) { | ||
((:data % 2) == 0) -> :res | ||
} | ||