-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specially handle short strings in the parser (#475)
* Specially handle short strings in the parser These short strings are read using the appropriate constructor, rather than the general buffer constructor. So the empty and singleton constructors are now public. Other changes include optimising foreign lpvm cast instructions applied to constant chars, integers and floats, as they get generated in this case. This avoids several instructions in calling unboxed constructors with constant arguments. Also use the -n wybemk flag in final-dump-test.sh, to turn off colourising, making diffs easier to read. There are numerous code improvements in final dump tests, including allowing specialisation to kick in in many places, since unboxed values cannot be aliased. There's one unfortunate change in output for constant_type_constraint_error.wybe: the error message for ?a = "s":int now complains about a type error in the call to wybe.string.singleton, which doesn't appear on the line. I think this is tolerable for now, as it would be difficult to fix. Closes #473 * Address all review comments
- Loading branch information
Showing
123 changed files
with
1,823 additions
and
1,852 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
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
Oops, something went wrong.