This is cool but struggles with the same problem that the OCaml manual has: somehow the language is split into a regular part and extensions such that you can’t really know what is where. For example, the constructs below are part of the extension but you would would expect literals to be defined as part of the lexical structure.
Starting from 4.06, the language reference part of the manual will have forwards references to related extensions right below each language construct. I hope that this will help at least a little with discovering extensions.
There is also a slow ongoing work to move relatively stable extension to the main part of the manual.
I’ve just re-tried all examples and I’ve not been able to reproduce your issue :-/ Which example is not working for you? Without the text of the grammar in your screen-shot, it’s impossible to investigate further. With more information I’ll be happy to help!
Can you please provide more details? I’m willing to investigate if someone gives me a detailed (click-by-click?) description of how to reproduce the issue.
Maybe I have understood. Maybe it’s the way I was reporting user errors (lexing and parsing errors during analysis of the grammar). Maybe I was not explicit enough about it being a user error. I’ve pushed a change to make it hopefully clearer.
@spop, @dinosaure, did you modify the “Grammar” field to get the error? Is it possible you introduced a syntax error?
Yes, it’s not an explicit user error, my bad - I use vimperator and switching between tabs added (by mishandling) a wrong character in the Grammar field …