jackfirth / jackfirth/resyntax

Refactoring custom languages

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Racket
Stars
70
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Resyntax should be able to refactor more than just #lang racket and #lang racket/base code. For example, Resyntax should be able to rewrite this:

#lang rhombus
(1 + 2) + 3

Into this:

#lang rhombus
1 + 2 + 3

Immediate applications include writing refactoring rules specific to Rhombus, Typed Racket (see #13), and Scribble.

I have some ideas about how to get this working, but no concrete solution yet. And I don't yet know how to address the fmt side of things here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by investigating how Resyntax currently recognizes #lang racket and #lang racket/base, then determine how custom-language refactoring and the fmt side should work. Done means the Rhombus example rewrites as shown and the approach supports Rhombus, Typed Racket, and Scribble rules.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.