# Using Parsing Expression Grammars to rewrite

> An example of PEG usage.

Page: https://nowfound.app/launch/using-parsing-expression-grammars-to-rewrite-source-code

- Launched: 2016-09-14
- Launch-day votes: 63, 26 comments; #877 of 3,177 launches that month (top 28%)
- Website: [github.com](https://github.com/sebcat/move-literals), online when checked 2026-09-19
- Category: [Life & fun](https://nowfound.app/c/life-and-consumer.md)
- Pricing: Free. Free and open source (checked 2026-11-24 on its site)
- Forecast: 93% chance its website is still online in November 2031 (99% in November 2027, 96% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2016: 80%. [Method](https://nowfound.app/forecast.md)
- Originality: 80/100 (original). More original than 80% of products launched in 2016. On its launch day the archive held no similar products; 5 products like it have launched since.

## In plain words

Using Parsing Expression Grammars to rewrite source code is a developer tool that uses PEG parsing to automatically transform and refactor code. It is designed for programmers who need to modify codebases systematically across multiple files. The tool stands out by enabling pattern-based rewrites through grammar definitions rather than manual code changes, making large-scale refactoring more efficient and consistent.

_Written by AI from its launch page and website, 2026-09-19._

## What it does, from its own words

An example of PEG usage. Contribute to sebcat/move-literals development by creating an account on GitHub.

## Does a similar job

- [A Rust macro that parses Java-like syntax and](https://nowfound.app/launch/a-rust-macro-that-parses-java-like-syntax-and-runs-it-as-a-r): A Rust macro that parses Java-like syntax and runs it as a Rust program (2018-08-10, 195 votes, free, forecast: 95% online in 2031, gitlab.com)
- [Python Source Code Refactoring Toolkit via AST](https://nowfound.app/launch/python-source-code-refactoring-toolkit-via-ast): AST-based fragmental source code refactoring toolkit for Python (2021-08-01, 110 votes, free, forecast: 94% online in 2031, github.com)
- [ScrapScript](https://nowfound.app/launch/scrapscript-a-tiny-functional-language-for-sharable-software): ScrapScript is a functional programming language designed to be minimal and easy to share. (2023-04-26, 503 votes, forecast: 97% online in 2031, scrapscript.org)
- [A syntax highlighter for Git and diff output](https://nowfound.app/launch/a-syntax-highlighter-for-git-and-diff-output-written-in-rust): A syntax-highlighting pager for git, diff, grep, rg --json, and blame output (2020-04-27, 261 votes, free, forecast: 95% online in 2031, github.com)
- [How to write a recursive descent parser](https://nowfound.app/launch/how-to-write-a-recursive-descent-parser): This is a chapter from a programming book that teaches readers how to build a recursive descent parser. (2017-03-20, 347 votes, forecast: 94% online in 2031, craftinginterpreters.com)
- [Refine](https://nowfound.app/launch/refine-a-local-alternative-to-grammarly): Fix grammar, rewrite sentences, translate text, and get clear explanations across your Mac apps. Do it all offline with local AI. (2025-07-14, 408 votes, free tier, one-time $38, forecast: 96% online in 2031, refine.sh)

All alternatives: https://nowfound.app/alternatives/using-parsing-expression-grammars-to-rewrite-source-code.md

## For the maker of Using Parsing Expression Grammars to rewrite

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/using-parsing-expression-grammars-to-rewrite-source-code
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/using-parsing-expression-grammars-to-rewrite-source-code"><img src="https://nowfound.app/badge/using-parsing-expression-grammars-to-rewrite-source-code.svg" alt="Using Parsing Expression Grammars to rewrite on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=12501774)
