-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(examples,e2e): fix compile and runtime errors (analyzer doesn't c…
…heck DI args) caused by latest changes
- Loading branch information
Showing
13 changed files
with
92 additions
and
72 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,30 +1,34 @@ | ||
import { strconv, fmt } | ||
|
||
def Main(start any) (stop any) { | ||
Aux, fmt.Println | ||
aux Aux | ||
println fmt.Println | ||
panic Panic | ||
--- | ||
:start -> aux:sig | ||
[aux:res, aux:err] -> println:data | ||
println:res -> :stop | ||
:start -> aux:sig | ||
aux:res -> println:data | ||
aux:err -> panic | ||
println:res -> :stop | ||
} | ||
|
||
def Aux(sig any) (res int, err error) { | ||
reader1 IntReader | ||
reader2 IntReader | ||
add Add<int> | ||
--- | ||
:sig -> reader1:sig | ||
reader1:num -> [add:left, reader2:sig] | ||
:sig -> reader1:sig | ||
reader1:num -> [add:left, reader2:sig] | ||
[reader1:err, reader2:err] -> :err | ||
reader2:num -> add:right | ||
add:res -> :res | ||
reader2:num -> add:right | ||
add:res -> :res | ||
} | ||
|
||
def IntReader(sig any) (num int, err error) { | ||
fmt.Scanln, strconv.ParseNum<int> | ||
scanln fmt.Scanln | ||
parse_num strconv.ParseNum<int> | ||
--- | ||
:sig -> scanln:res | ||
scanln:res -> parseNum:data | ||
parseNum:res -> :num | ||
parseNum:err -> :err | ||
:sig -> scanln:sig | ||
scanln:res -> parse_num:data | ||
parse_num:res -> :num | ||
parse_num: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
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,10 +1,10 @@ | ||
import { fmt } | ||
|
||
def Main(start any) (stop any) { | ||
fmt.Scanln | ||
fmt.Println<string> | ||
scanln fmt.Scanln | ||
println fmt.Println<string> | ||
--- | ||
:start -> scanln:res | ||
:start -> scanln:sig | ||
scanln:res -> println:data | ||
println:res -> :stop | ||
} |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { fmt } | ||
|
||
def Main(start any) (stop any) { | ||
second_flow Secondflow {fmt.Println<any>} | ||
second_flow Secondflow{fmt.Println<any>} | ||
--- | ||
:start -> second_flow:data | ||
second_flow:res -> :stop | ||
} | ||
|
||
def Secondflow (data any) (res any) { | ||
iPrinter IPrinter<any> | ||
printer IPrinter<any> | ||
--- | ||
:data -> iPrinter:res | ||
iPrinter:sig -> :res | ||
:data -> printer:data | ||
printer:res -> :res | ||
} | ||
|
||
interface IPrinter<T>(T) (T) | ||
interface IPrinter<T>(data T) (res T) |
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,17 +1,17 @@ | ||
import { github.com/nevalang/x:main } | ||
|
||
def Main(start any) (stop any) { | ||
second_flow Secondflow{main.Println<any>} | ||
sub_component SubComponent{main.Println<any>} | ||
--- | ||
:start -> second_flow:data | ||
second_flow:res -> :stop | ||
:start -> sub_component:data | ||
sub_component:res -> :stop | ||
} | ||
|
||
def Secondflow (data any) (res any) { | ||
def SubComponent(data any) (res any) { | ||
printer IPrinter<any> | ||
--- | ||
:data -> printer:res | ||
printer:sig -> :res | ||
:data -> printer:data | ||
printer:res -> :res | ||
} | ||
|
||
interface IPrinter<T>(T) (T) | ||
interface IPrinter<T>(data T) (res T) |
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
6 changes: 3 additions & 3 deletions
6
e2e/filter_list/main/main.neva → examples/filter_list/main.neva
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