Hello,
I was trying to translate HTML specification into a PEG grammar. XML uses a simple EBNF notation
How would you translate the following?
CharData // All text that is not markup constitutes the character data of the document.
= [^<&]* - ([^<&]* "]]>" [^<&]*)
In other words I want to match an expression if it matches the first expression but not the second one.
Is it possible to do it in PEG or would it be a good idea to add the '-' symbol to PEG's grammar?
Thanks
Fabio