https://bugs.kde.org/show_bug.cgi?id=518109

--- Comment #10 from Igor Zhuravlov <[email protected]> ---
(In reply to Jonathan Poelen from comment #7)

Feel free to adjust bnf.xml and test.bnf as you wish (since they are GPL-ed).
BTW, I like your changes in bnf.xml in totto.

> For `;`, I’ll split the Terminator style into two so it retains the same
> appearance but can be changed in the configuration. Text after `;` would be
> a comment.
That's ok if there will be a possibility to specify the next rule on the same
line, in your variant it will be e.g.
A ::= B | C .  D ::= E | 'f' ; comment here

Some BNF standards allow empty sequences, others allow empty terminator so the
following line may specify valid BNF:
A ::= B | B ::=
which is equivalent to:
A ::= B | '' . B ::= '' .

> I’ve only seen one group of files using `%` as a comment, but only for
> single-line comments. However, I did see one file using it as an extension:
> `%import common.WS`. In my opinion, the `% ... %` format is rarely used, so
> I’m tempted to turn `%` into an operator, possibly a single-line comment.

Ok.

About the '-' ("minus") char used in rulename entity: if you allow the same
char as combinator then the following becomes ambiguous:
A ::= B-C
I think it would be better to disallow '-' char in rulename entity.

(In reply to Jonathan Poelen from comment #9)
> Are you committed to the GPL license?
Yes. It's important for me, so I'm not willing to change the license. You may
exclude bnf.xml and test.bnf from the commit.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to