forked from ProvableHQ/snarkVM
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This failed ``` hash_many.psd2 r1 r2 into r3 as field; ``` while this passed ``` hash_many.psd2 r1r2 into r3 as field; ``` The problem was the lack of a call to `Sanitizer::parse_whitespaces` between the two operands. This PR fixes the problem by systematically skipping whitespace just before each operand, as done in other parts of the Aleo instructions parser. Also add a test demonstrating that the previous failing example above now passes.
- Loading branch information
Showing
3 changed files
with
5 additions
and
3 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 |
---|---|---|
|
@@ -61,3 +61,4 @@ | |
- Parsing was successful. | ||
- Parsing was successful. | ||
- Parsing was successful. | ||
- Parsing was successful. |
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