-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Complex chained comparison compile into broken code
Squashed commit of the following: commit 12c5908629226cefc2bfca43d3a6c78ccbdae02c Author: Jan Max Meyer <[email protected]> Date: Sat Dec 28 16:39:11 2024 +0100 Adding testcases commit 5909fff Author: Jan Max Meyer <[email protected]> Date: Fri Dec 27 23:01:46 2024 +0100 Fixing chained comparison using ImlOp::If commit 38b5a95 Author: Jan Max Meyer <[email protected]> Date: Fri Dec 27 20:11:06 2024 +0100 Improve comparison-ast-traversal
- Loading branch information
Showing
3 changed files
with
76 additions
and
33 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
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 @@ | ||
# Testcase for chained comparions from capture. | ||
|
||
_ : ' ' | ||
|
||
(Int _)+ print($1[0] < $1[1] < $1[2]) | ||
|
||
#--- | ||
#6 5 4 | ||
#4 5 6 | ||
|
||
#--- | ||
#false | ||
#true |