Replies: 1 comment
-
Ok, I managed to solve my issue accordings the this short section: https://github.com/ohmjs/ohm/blob/main/doc/api-reference.md#semantic-actions I added these defintions to my grammar: I am still in the phase of learning and will try to understand what I did and why it worked :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Guys,
this is awesome what you create here, many thanks first of all to you!
I am totally new to lexing, parsing and Ohm but at least I managed to create my first grammar. Maybe its not perfect but I was able to create a grammar for ER diagrams with Entities and References like
Now I could parse some test input and get the expected results.
Now I would like to create my first semantic
But it fails when I try to run it with:
ERROR
Missing semantic action for '_iter' in operation 'eval'.
NOTE: as of Ohm v16, there is no default action for iteration nodes — see
https://ohmjs.org/d/dsa for details.
Action stack (most recent call last):
eval > Statements
eval > _iter
I am pretty sure that I am mistaking with something basic but I was unable to understand the hints here
https://github.com/ohmjs/ohm/blob/main/doc/patterns-and-pitfalls.md
Can somebody please shine some light for me? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions