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

OhmSmalltalk grammar cannot be parsed by Ohm/JS #33

Open
stlutz opened this issue May 15, 2019 · 2 comments
Open

OhmSmalltalk grammar cannot be parsed by Ohm/JS #33

stlutz opened this issue May 15, 2019 · 2 comments

Comments

@stlutz
Copy link

stlutz commented May 15, 2019

I stumbled upon this using the interactive ohm editor and confirmed it by setting up ohm/JS locally.

Error: Line 207, col 7:
  206 |     | stringLiteral
> 207 |     | ByteArrayLiteral
              ^~~~~~~~~~~~~~~~
  208 |     | symbolInArrayLiteral
Cannot apply syntactic rule ByteArrayLiteral from here (inside a lexical context)

After converting ByteArrayLiteral and LiteralArrayLiteralInLiteralArray to lexical rules, it does get accepted. I'm not sure, however, if that has an impact on the grammar's correctness.

@codeZeilen
Copy link
Member

Thanks for pointing it out. It does break the rule but we can change it in another way. Does this prevent progress right now?

@stlutz
Copy link
Author

stlutz commented May 15, 2019

It shouldn't affect me, really. I decided to develop my derivative language inside Squeak, so the OhmSmalltalk grammar is correctly parsed anyway.

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

2 participants