objectionary / eo

EOLANG, an Experimental Pure Object-Oriented Programming Language Based on 𝜑-calculus
https://www.eolang.org
MIT License
1.01k stars 126 forks source link

duplication production rule `comment` #2846

Closed yegor256 closed 7 months ago

yegor256 commented 7 months ago

EBNF fails now: https://github.com/objectionary/eo/actions/runs/7767407515/job/21184221160#step:9:16

yegor256 commented 7 months ago

@maxonfjvipon please, check this one. EBNF expects all rules to be unique, either lowcase or uppercase. Probably, we have comment and COMMENT in the antlr script now.

maxonfjvipon commented 7 months ago

@yegor256 you're right. comment is a parser rule, COMMENT is a lexer rule. They actually may be the same (in lowcase). Do you suggest to rename one of them?

yegor256 commented 7 months ago

@maxonfjvipon yes, we have to rename. This is the only way to make EBNF rendering work.

yegor256 commented 7 months ago

@maxonfjvipon I enabled EBNF job for pull requests too, in 7089d7dc5