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

Octal literals in cases not supported? #198

Open
remexre opened this issue Oct 24, 2022 · 1 comment
Open

Octal literals in cases not supported? #198

remexre opened this issue Oct 24, 2022 · 1 comment

Comments

@remexre
Copy link
Member

remexre commented Oct 24, 2022

$ cat main.c
int main(void) {
  int out = 0;
  switch (out) {
  case '\177':
    break;
  }
  return out;
}
$ gcc -std=c11 -pedantic main.c
$ ableC main.c
Error at line 4, column 7 in file main.c
         (parser state: 302; real character index: 240):
  Expected a token of one of the following types:
[...]
@remexre
Copy link
Member Author

remexre commented Oct 24, 2022

Oh, ugh, we just don't support these escapes at all... terminal CharConstant_t /[']([^']|[\\].)[']/ lexer classes {StringLiteral};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant