jrester / EBNF.cr

Work with (E)BNF and bison/YACC Grammar: Parsing, FIRST/FOLLOW set, CNF, Conversions, LR and LL parsing tables
MIT License
26 stars 3 forks source link

Error running code samples in README #4

Open bzlister opened 5 months ago

bzlister commented 5 months ago

Tried running a couple of the code samples in the Parsing section, got the same error each time:

In lib\ebnf\src\ebnf\grammar\rule.cr:89:48

 89 | def initialize(@atoms = Array(Atom).new, @action = nil)
                                               ^
Error: instance variable @action of EBNF::Bison::Rule was inferred to be Nil, but Nil alone provides no information