parser-expert

Implement regex-based language parsers using the ILanguageParser strategy pattern.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/MCrank/code-compress --skill parser-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parser-expert
Source: https://github.com/MCrank/code-compress/tree/main/.claude/skills/parser-expert
Command: npx skills add https://github.com/MCrank/code-compress --skill parser-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance on developing and implementing robust language parsers for the CodeCompress project, ensuring accurate symbol and dependency extraction from diverse codebases.

Core Features & Use Cases

  • Parser Development: Guides the creation of regex-based parsers adhering to the ILanguageParser strategy pattern.
  • Language Support: Details implementation specifics for existing parsers (Luau, C#, Terraform, Blazor, .NET Project, JSON) and provides guidance for planned parsers (Python, Go, Rust).
  • Use Case: When adding support for a new programming language to CodeCompress, consult this Skill for best practices in regex-based parsing, symbol definition, and integration testing.

Quick Start

Implement a new language parser for CodeCompress by following the provided architecture and testing patterns.

Frequently Asked Questions about parser-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a regex-based language parser for code analysis?

To implement a regex-based language parser for code analysis, you must adhere to the ILanguageParser strategy pattern, defining language-specific grammar rules for accurate symbol and dependency extraction.

What is the ILanguageParser strategy pattern used for in compiler implementation?

The ILanguageParser strategy pattern in compiler implementation standardizes language parsing by defining a unified interface for extracting symbols and tracking byte offsets across diverse programming languages.

Does this parser development approach support Python, Go, and Rust?

Yes, this parser development approach supports Python, Go, and Rust, providing specific implementation guidance for these planned parsers alongside existing support for Luau, C#, and Terraform.

How do I track byte offsets during language parsing for dependency extraction?

You track byte offsets during language parsing by utilizing the regex-based extraction logic within the ILanguageParser strategy to record exact character positions of defined symbols and dependencies.

What is the best way to test a new language parser for code analysis?

The best way to test a new language parser for code analysis is to follow the provided integration testing patterns, ensuring your regex-based grammar rules accurately extract symbols across diverse codebases.