-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ new ]
--exec
takes arbitrary expression (#3438)
* [ cleanup ] Remove redudant `assert_total`s in `Text.Parser.Core` * [ new ] `--exec` takes arbitrary expression * [ fix ] Update `expected` in test `chez/chez031` * [ doc ] Update `CHANGELOG_NEXT.md`
- Loading branch information
Showing
16 changed files
with
133 additions
and
27 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 |
---|---|---|
|
@@ -81,6 +81,7 @@ Timmy Jose | |
Tim Süberkrüb | ||
Tom Harley | ||
troiganto | ||
Viktor Yudov | ||
Wen Kokke | ||
Wind Wong | ||
Zoe Stafford | ||
|
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 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Hi, XX! | ||
Hi, YY! | ||
Hi, XX! | ||
Hi, YY! | ||
------ | ||
Error: Ambiguous elaboration. Possible results: | ||
Main.XX.main | ||
Main.YY.main | ||
|
||
(Interactive):1:1--1:5 | ||
1 | main | ||
^^^^ | ||
|
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,11 @@ | ||
namespace XX | ||
|
||
export | ||
main : IO () | ||
main = putStrLn "Hi, XX!" | ||
|
||
namespace YY | ||
|
||
export | ||
main : IO () | ||
main = putStrLn "Hi, YY!" |
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,8 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --exec XX.main issue3398.idr | ||
idris2 --exec YY.main issue3398.idr | ||
idris2 --exec Main.XX.main issue3398.idr | ||
idris2 --exec Main.YY.main issue3398.idr | ||
echo "------" | ||
idris2 --exec main issue3398.idr |
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,3 @@ | ||
Hello! | ||
1 + 2 = 3 | ||
Bye! |
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,6 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 \ | ||
--exec 'putStrLn "Hello!"' \ | ||
--exec 'putStrLn "1 + 2 = \{show $ 1 + 2}"' \ | ||
--exec 'putStrLn "Bye!"' |
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,32 @@ | ||
Hello! | ||
Error: Can't find an implementation for Num (IO ?a). | ||
|
||
(Interactive):1:1--1:6 | ||
1 | 1 + 2 | ||
^^^^^ | ||
|
||
------ | ||
Hello! | ||
Error: Do block cannot be empty | ||
|
||
(Interactive):1:1--1:3 | ||
1 | do | ||
^^ | ||
|
||
------ | ||
Hello! | ||
Error: Couldn't parse any alternatives: | ||
1: Expected 'case', 'if', 'do', application or operator expression. | ||
|
||
(Interactive):1:1--1:3 | ||
1 | !! | ||
^^ | ||
... (84 others) | ||
------ | ||
Hello! | ||
Error: Undefined name undefined. | ||
|
||
(Interactive):1:1--1:10 | ||
1 | undefined | ||
^^^^^^^^^ | ||
|
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,9 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --exec 'putStrLn "Hello!"' --exec "1 + 2" --exec 'putStrLn "Bye!"' | ||
echo "------" | ||
idris2 --exec 'putStrLn "Hello!"' --exec "do" --exec 'putStrLn "Bye!"' | ||
echo "------" | ||
idris2 --exec 'putStrLn "Hello!"' --exec "!!" --exec 'putStrLn "Bye!"' | ||
echo "------" | ||
idris2 --exec 'putStrLn "Hello!"' --exec "undefined" --exec 'putStrLn "Bye!"' |
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,9 @@ | ||
3 | ||
------ | ||
Error: Expected end of input. | ||
|
||
(Interactive):2:1--2:2 | ||
1 | printLn $ 1 | ||
2 | + 2 | ||
^ | ||
|
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,9 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --exec 'printLn $ 1 | ||
+ 2' | ||
|
||
echo "------" | ||
|
||
idris2 --exec 'printLn $ 1 | ||
+ 2' |