Disallow empty placeholders in the syntax #345
Labels
blocker-candidate
The submitter thinks this might be a block for the next release
resolve-candidate
This issue appears to have been answered or resolved, and may be closed soon.
syntax
Issues related with syntax or ABNF
I'm refactoring our BNF in #344 to explicitly define whitespace rules. In order to do so, I had to change our grammar from LL(1) to LL(1) with backtracking.
In the process I noticed an opportunity to make the grammar LL(2). IIUC, this provides more guarantees about the complexity of parsing than LL(1) with backtracking. LL(2) is still O(n), while backtracking can be arbitrarily long and can result in exponential worst-case complexity.
Do we need empty placeholders?
I recall previous discussions with @eemeli about potentially allowing comment-only or metadata-only placeholders in the future. Any thoughts on this?
Originally posted by @stasm in #344 (comment)
The text was updated successfully, but these errors were encountered: