What problem does it solve?
This Skill provides guidance and tools for developing and enhancing parsers for new programming languages within the Biome toolchain, including robust error recovery mechanisms.
Core Features & Use Cases
- Grammar Authoring: Define language syntax using the
.ungram format.
- Parser Generation: Automatically generate parser code from grammar definitions.
- Lexer Implementation: Create lexers for tokenizing source code.
- Error Recovery: Implement strategies to handle syntax errors gracefully.
- Use Case: A developer needs to add support for a new templating language to Biome, requiring them to define its grammar, generate the parser, and implement error handling for malformed templates.
Quick Start
Use the parser-development skill to generate a parser for a new language by creating a .ungram file in xtask/codegen/ and running just gen-grammar <language_name>.