Open andrawaag opened 1 year ago
If I remember correctly this a tricky issue with grammars as you can omit the last one and this is perfectly legal. When omitting the last one it works fine and it generates all the triples. However, it is true, that if you omit more of them you can end up with less triples or none at all. As said this is kind of difficult to control with the grammar.
Either way, this could be solved with a semantic analysis and check of the AST, unfortunately this semantic analysis is something that I neglected since the very beginning as it tends to be too time consuming so I used the time to include further features to the engine. I will, nevertheless, study its addition for the future as it is also related with your other issue #147.
Thanks for reporting this!
When I provided the parser an incorrect ShExML where I forgot to provide correct ";" at the end. Tiples were generated. I would expect an error message. The final two statements lacked the ";". The resulting triples were not generated
This was the case in the following section.
This lead to the following results:
After adding the correct ';', the results were as expected.