ARMmbed / ARMmbed/snippet

Parse using regex

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9
Forks
22
PR merge metrics
No merged PRs in 30d

Description

current linewise approach is simple-but-slow and a structure more like the following could be good:

* extract all using regex match with look-ahead/behind (or, validate open/close and then extract)
* validate the individual snippets, again possibly with regex or linewise

not sure how significant an issue performance is yet / ever

Contributor guide

Open the contributing guide

Research direction

Start by locating the current linewise parsing entry point in the Python tool and measure its performance on representative source files. Compare a regex-based extraction and validation approach against the existing behavior, including open/close handling; done means the approach is justified by benchmarks and preserves snippet validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.