Hejsil / Hejsil/mecha

Implement nom-like `escaped_transform` Parser

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Zig
Stars
609
Forks
30
PR merge metrics
No merged PRs in 30d

Description

See https://docs.rs/nom/latest/nom/bytes/complete/fn.escaped_transform.html for reference.

This allows the parser to return a unescaped version of an string.
E.g. "\\n" ->"\n"

Maybe also adding `escaped` function would be great.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked nom escaped_transform reference and inspect the repository's parser-combinator entry points to understand how transformed string results are represented. The issue is done when escaped input such as "\\n" produces an unescaped newline; determine separately whether the optional escaped function belongs in scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
zig
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.