Ohm-S icon indicating copy to clipboard operation
Ohm-S copied to clipboard

OhmSmalltalk grammar cannot be parsed by Ohm/JS

Open stlutz opened this issue 5 years ago • 2 comments

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.

stlutz avatar May 15 '19 08:05 stlutz

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

codeZeilen avatar May 15 '19 11:05 codeZeilen

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

stlutz avatar May 15 '19 12:05 stlutz