Grammar File Verification Report
This report analyzes grammar files from old_code/grammar/ to verify they follow the format specified in the Grammar File Creation Guide.
Analysis Results
ABNF.grammar
- β Status: Invalid - No Grammar header and no valid production rules
- π Grammar Header: Missing
- π§ Token Splitter: Missing
- π Production Rules: 0 found
- π― Token Rules: 0 found
- π File Size: 0 lines
- π¬ Comments: 0 lines
C17.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 118 found
- π― Token Rules: 0 found
- π File Size: 292 lines
- π¬ Comments: 1 lines
CEBNF.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 38 found
- π― Token Rules: 2 found
- π File Size: 40 lines
- π¬ Comments: 0 lines
COBOL2023.grammar
- β Status: Invalid - No Grammar header and no valid production rules
- π Grammar Header: Missing
- π§ Token Splitter: Missing
- π Production Rules: 0 found
- π― Token Rules: 0 found
- π File Size: 1537 lines
- π¬ Comments: 40 lines
CSS.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 104 found
- π― Token Rules: 0 found
- π File Size: 208 lines
- π¬ Comments: 17 lines
CSharp10.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 458 found
- π― Token Rules: 0 found
- π File Size: 928 lines
- π¬ Comments: 1 lines
ClassicASP.grammar
- β Status: Invalid - No Grammar header and no valid production rules
- π Grammar Header: Missing
- π§ Token Splitter: Missing
- π Production Rules: 0 found
- π― Token Rules: 0 found
- π File Size: 811 lines
- π¬ Comments: 55 lines
Cpp20.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 208 found
- π― Token Rules: 0 found
- π File Size: 428 lines
- π¬ Comments: 1 lines
ExtensionFile.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 6 found
- π― Token Rules: 4 found
- π File Size: 9 lines
- π¬ Comments: 0 lines
Go119.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 294 found
- π― Token Rules: 0 found
- π File Size: 691 lines
- π¬ Comments: 84 lines
GrammarFile.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 7 found
- π― Token Rules: 4 found
- π File Size: 10 lines
- π¬ Comments: 0 lines
HTMLEmbedded.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 85 found
- π― Token Rules: 0 found
- π File Size: 257 lines
- π¬ Comments: 22 lines
Hyperlambda.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 56 found
- π― Token Rules: 5 found
- π File Size: 181 lines
- π¬ Comments: 12 lines
JSON.grammar
- β Status: Invalid - No Grammar header and no valid production rules
- π Grammar Header: Missing
- π§ Token Splitter: Missing
- π Production Rules: 0 found
- π― Token Rules: 0 found
- π File Size: 435 lines
- π¬ Comments: 20 lines
JSONSchema.grammar
- β Status: Invalid - No Grammar header and no valid production rules
- π Grammar Header: Missing
- π§ Token Splitter: Missing
- π Production Rules: 0 found
- π― Token Rules: 0 found
- π File Size: 801 lines
- π¬ Comments: 25 lines
Java.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Missing
- π Production Rules: 176 found
- π― Token Rules: 0 found
- π File Size: 364 lines
- π¬ Comments: 0 lines
Java17.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 298 found
- π― Token Rules: 0 found
- π File Size: 607 lines
- π¬ Comments: 1 lines
JavaScript.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 157 found
- π― Token Rules: 0 found
- π File Size: 309 lines
- π¬ Comments: 23 lines
JavaScriptES2022.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 331 found
- π― Token Rules: 0 found
- π File Size: 923 lines
- π¬ Comments: 25 lines
MBNF.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 35 found
- π― Token Rules: 0 found
- π File Size: 54 lines
- π¬ Comments: 4 lines
PostalCoding.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 17 found
- π― Token Rules: 3 found
- π File Size: 21 lines
- π¬ Comments: 1 lines
PostalCoding_Enhanced.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 43 found
- π― Token Rules: 8 found
- π File Size: 60 lines
- π¬ Comments: 7 lines
Python311.grammar
- β οΈ Status: Needs Header - Valid BNF/EBNF but missing Grammar header
- π Grammar Header: Missing (needs to be added)
- π§ Token Splitter: Present
- π Production Rules: 380 found
- π― Token Rules: 0 found
- π File Size: 772 lines
- π¬ Comments: 1 lines
Rust2021.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 339 found
- π― Token Rules: 0 found
- π File Size: 943 lines
- π¬ Comments: 59 lines
WebAssembly20.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 362 found
- π― Token Rules: 0 found
- π File Size: 809 lines
- π¬ Comments: 70 lines
antlr4_base.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 61 found
- π― Token Rules: 24 found
- π File Size: 324 lines
- π¬ Comments: 79 lines
bison_base.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 69 found
- π― Token Rules: 18 found
- π File Size: 399 lines
- π¬ Comments: 91 lines
flex_base.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 70 found
- π― Token Rules: 13 found
- π File Size: 462 lines
- π¬ Comments: 74 lines
lex_base.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 59 found
- π― Token Rules: 4 found
- π File Size: 405 lines
- π¬ Comments: 76 lines
yacc_base.grammar
- β
Status: Valid - Has proper Grammar header
- π Grammar Header: Present
- π§ Token Splitter: Present
- π Production Rules: 67 found
- π― Token Rules: 9 found
- π File Size: 399 lines
- π¬ Comments: 89 lines
Summary
- β
Valid Files: 14
- β οΈ Need Header Fix: 11
- β Invalid Files: 5
- π Total Files: 30
Recommendations
Files to Copy As-Is (14 Valid Files)
These files already follow the proper format and can be copied directly:
- CSS.grammar, Go119.grammar, HTMLEmbedded.grammar, Hyperlambda.grammar
- JavaScript.grammar, JavaScriptES2022.grammar, PostalCoding_Enhanced.grammar, Rust2021.grammar
- WebAssembly20.grammar, antlr4_base.grammar, bison_base.grammar, flex_base.grammar
- lex_base.grammar, yacc_base.grammar
Files to Fix and Copy (11 Files)
These files have valid production rules but need proper headers added:
- C17.grammar, CEBNF.grammar, CSharp10.grammar, Cpp20.grammar
- ExtensionFile.grammar, GrammarFile.grammar, Java.grammar, Java17.grammar
- MBNF.grammar, PostalCoding.grammar, Python311.grammar
Files to Skip (5 Invalid Files)
These files are either empty or donβt follow the grammar format:
- ABNF.grammar (empty file)
- COBOL2023.grammar (no production rules)
- ClassicASP.grammar (no production rules)
- JSON.grammar (no production rules)
- JSONSchema.grammar (no production rules)