Rtk

C+ 72 completed
Library
unknown / markdown · small
104
Files
7,369
LOC
0
Frameworks
6
Languages

Pipeline State

completed
Run ID
#371717
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
37.73
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #47403
Member of a group with 1 similar repo(s) — canonical #349 view group →
Top concepts (2)
Project DescriptionDocumentation
Same scanner, your repo: https://repobility.com — Repobility

AI Prompt

Create a tool, similar to RTK, that generates parser and lexer facilities from grammar specifications. I need it to support defining languages using `.pg` grammar files. The tool should generate Alex (`.x`) lexer specifications, Happy (`.y`) parser specifications, and a quasi-quoter module. It should also support self-hosting, meaning it can parse and generate parsers for its own grammar format. Finally, include examples for generating grammars for Java and Haskell subsets.
haskell parser-generator lexer grammar compiler tooling language-development
Generated by gemma4:latest

Catalog Information

RTK generates parser and rewrite facilities from grammar specifications to support language development.

Description

RTK (Rewrite ToolKit) is a tool for generating parsers and lexers from grammar specifications. It supports quasi-quotation, allowing users to embed parsed syntax directly in Haskell code. RTK can parse and generate parsers for its own grammar format, making it self-hosting. The tool generates Alex lexer and Happy parser files, which can be compiled separately.

الوصف

هو أداة لتوليد محركات التجزئة والقراءة من تعريفات النحوية. يدعم RTK الاستقبال المباشر، مما يسمح للمستخدمين بدمج syntax المجمعة مباشرة في كود هاسكل. يمكن RTK قراءة وتوليد محركات التجزئة الخاصة بهذا نفسه، مما يجعلها ذات استضافة ذاتية. تولد الأداة ملفات Alex lexer و Happy parser التي يمكن تجميعها بشكل منفصل.

Novelty

7/10

Tags

parser-generation lexer-generation quasi-quotation self-hosting language-development

Claude Models

claude (unknown version)

Quality Score

C+
71.8/100
Structure
68
Code Quality
82
Documentation
72
Testing
35
Practices
78
Security
100
Dependencies
60

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good security practices \u2014 no major issues detected
  • Properly licensed project

Weaknesses

  • 2 files with critical complexity need refactoring
  • 118 duplicate lines detected \u2014 consider DRY refactoring

Recommendations

  • Add a test suite \u2014 start with critical path integration tests
  • Add a linter configuration to enforce code style consistency

Security & Health

10.6h
Tech Debt (C)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (3)
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
MIT
License
2.8%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

markdown
41.7%
haskell
37.5%
shell
8.5%
text
8.0%
yaml
2.5%
java
1.8%

Frameworks

None detected

Concepts (2)

Source: Repobility analyzer (https://repobility.com)
CategoryNameDescriptionConfidence
Provenance: Repobility (https://repobility.com) — every score reproducible from /scan/
auto_descriptionProject DescriptionRTK generates parser and rewrite facilities from grammar specifications. It produces Alex lexer and Happy parser files, with support for quasi-quotation to embed parsed syntax directly in Haskell code.80%
auto_categoryDocumentationdocs70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/95931.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV