Backseating-Committee-2k / Backseating-Committee-2k/Upholsterer2k

refactor the lexer

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

At the moment the lexer uses one huge function (`tokenize`) to tokenize the code. The code could become cleaner, if this could be refactored into several functions. For this some kind of `LexerState`-struct would be necessary.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the lexer entry point named `tokenize` and inspect its current responsibilities and tokenization behavior. Identify suitable function boundaries and the required `LexerState` structure; the refactor is done when the lexer is split into several functions without changing its behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.