formal grammar updates [backport:1.2] (#18803)
This commit is contained in:
parent
5c85e480a6
commit
2e2d928846
3 changed files with 40 additions and 48 deletions
|
|
@ -13,6 +13,7 @@ proc checkGrammarFileImpl(cache: IdentCache, config: ConfigRef) =
|
|||
var stream = llStreamOpen(data)
|
||||
var declaredSyms = initHashSet[string]()
|
||||
var usedSyms = initHashSet[string]()
|
||||
usedSyms.incl "module" # 'module' is the start rule.
|
||||
if stream != nil:
|
||||
declaredSyms.incl "section" # special case for 'section(RULE)' in the grammar
|
||||
var
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue