-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #600 from nevalang/no_net_syntax
feat(e2e,examples,smoke_tests): get rid of "net" keyword
- Loading branch information
Showing
95 changed files
with
964 additions
and
1,234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"path": "internal/compiler/analyzer/component_nodes.go", | ||
"bookmarks": [ | ||
{ | ||
"line": 198, | ||
"column": 1, | ||
"label": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { | ||
io | ||
strconv | ||
} | ||
|
||
component { | ||
Main(start) (stop) { | ||
nodes { Aux, Println } | ||
|
||
:start -> aux:sig | ||
[aux:res, aux:err] -> println:data | ||
println:sig -> :stop | ||
} | ||
|
||
Aux(sig) (res int, err error) { | ||
nodes { | ||
reader1 IntReader | ||
reader2 IntReader | ||
adder ReducePort<int> { Add<int> } | ||
} | ||
|
||
:sig -> reader1:sig | ||
reader1:num -> [adder:port[0], reader2:sig] | ||
[reader1:err, reader2:err] -> :err | ||
reader2:num -> adder:port[1] | ||
adder:res -> :res | ||
} | ||
|
||
IntReader(sig any) (num int, err error) { | ||
nodes { io.Scanln, strconv.ParseNum<int> } | ||
|
||
:sig -> scanln:sig | ||
scanln:data -> parseNum:data | ||
parseNum:res -> :num | ||
parseNum:err -> :err | ||
} | ||
} |
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
Oops, something went wrong.