grammar-design
SolidExpert skill for formal grammar design including disambiguation, precedence, and validation
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Grammar Design Skill
## Overview
Expert skill for formal grammar design including disambiguation, precedence, and validation.
## Capabilities
- Write EBNF/BNF grammar specifications
- Design unambiguous grammars
- Handle operator precedence and associativity
- Analyze grammar conflicts
- Design grammar for specific parser classes (LL, LR, PEG)
- Document grammar with examples
- Design syntax for common language constructs
- Handle grammar evolution and backwards compatibility
## Target Processes
- language-grammar-design.js
- lexer-implementation.js
- parser-development.js
## Dependencies
Parsing theory literature (Dragon Book, Parsing Techniques)
## Usage Guidelines
1. **Notation**: Use standard EBNF notation for grammar specifications
2. **Disambiguation**: Make grammars unambiguous or document precedence rules
3. **Parser Class**: Design grammar to fit target parser class (LL(k), LALR, PEG)
4. **Examples**: Include examples for all grammar rules
5. **Evolution**: Plan for backwards-compatible grammar evolution
## Output Schema
```json
{
"type": "object",
"properties": {
"notation": {
"type": "string",
"enum": ["ebnf", "bnf", "peg", "antlr"]
},
"parserClass": {
"type": "string",
"enum": ["ll1", "llk", "lalr", "glr", "peg"]
},
"productionCount": { "type": "integer" },
"conflicts": {
"type": "array",
"items": { "type": "string" }
},
"generatedFiles": {
"type": "array",
"items": {...
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
parser-generator
Expert skill for parser generation and implementation using LL, LR, LALR, PEG, and Pratt parsing techniques
1,160 Updated today
a5c-ai AI & Automation Solid
tree-sitter
Expert skill for creating tree-sitter grammars for incremental parsing and syntax highlighting
1,160 Updated today
a5c-ai AI & Automation Solid
lexer-generator
Expert skill for generating and hand-writing lexers using DFA-based, table-driven, and recursive approaches
1,160 Updated today
a5c-ai AI & Automation Solid
ssair-design
Expert skill for designing intermediate representations and implementing SSA construction
1,160 Updated today
a5c-ai AI & Automation Solid
garbage-collection
Expert skill for garbage collector design and implementation including various collection algorithms
1,160 Updated today
a5c-ai