Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner Breaks on Character Literals #125

Open
EmilySillars opened this issue Nov 1, 2022 · 0 comments
Open

Scanner Breaks on Character Literals #125

EmilySillars opened this issue Nov 1, 2022 · 0 comments
Labels
bug Something isn't working frontend Engineering issues related to the frontend subsystem

Comments

@EmilySillars
Copy link
Contributor

It looks like one of the two most recent commits to the scanner causes a bug on character literals.
Input:

main cin cout =
 let x = 'h' // character literals should turn into integers, right?
 after 1, cout <- x
 ()

Expected Output:

h

Running at current head of main:

./runtests.sh tests/check_single_quotes.ssl
check_single_quotes...FAILED
...
###### Testing check_single_quotes
stack exec sslc -- tests/check_single_quotes.ssl > out/check_single_quotes.c
ParseError (ErrorMsg "Could not escape string: ''")
###### FAILED

If I roll back three commits, to commit: e4d8bf2

./runtests.sh tests/check_single_quotes.ssl
check_single_quotes...OK
@EmilySillars EmilySillars added bug Something isn't working frontend Engineering issues related to the frontend subsystem labels Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Engineering issues related to the frontend subsystem
Projects
None yet
Development

No branches or pull requests

1 participant