format-grammar
Display a structured grammar summary showing rule lists, imports, options, and issue counts to provide a clear overview of ANTLR4 grammar organization.
Instructions
Display a structured summary of the grammar with proper formatting.
When to use: Get a high-level overview of grammar organization and structure.
Returns:
Grammar name and type
Complete rule list (organized by type)
Import declarations
Grammar options
Issue summary with counts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_file | No | Optional: path to a grammar file to read | |
| grammar_content | No | The content of the ANTLR4 grammar file |