maetl / calyx

A Ruby library for generating text with recursive template grammars.
MIT License
61 stars 5 forks source link

Poor quality error message with empty expansion delimeters #27

Open maetl opened 2 years ago

maetl commented 2 years ago

This has potential to cause confusion during prototyping and sketching of grammars:

my_rule "{}"

Instead of a readable missing rule error, it throws a stack trace from a parser glitch.

calyx/production/concat.rb:23:in `block in parse': undefined method `[]' for nil:NilClass (NoMethodError)