diff options
| author | EuAndreh <eu@euandre.org> | 2025-07-11 21:49:57 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-07-11 21:50:04 -0300 |
| commit | 42001c72522293fe9ba2ba17901eda89add6f3fa (patch) | |
| tree | 5f513170bb984f22e092c6aeb36d859ffaaf5040 /Makefile | |
| parent | tests/paca.mjs (test_tokenizeRegexStep): Simplify table values (diff) | |
| download | paca-42001c72522293fe9ba2ba17901eda89add6f3fa.tar.gz paca-42001c72522293fe9ba2ba17901eda89add6f3fa.tar.xz | |
src/paca.mjs (tokenizeRegexStep): Simplify body
When handling a custom state, dispatch it to the appropriate function in
`STATE_FNS`; and when looking for chars that enters these custom states,
dispatch it to the appropriate function in `TRANSITION_FNS`.
The body of each part didn't change, so no tests had to be modified.
But now we can write specific tests for each case, and remove the bulk
of the logic out of `tokenizeRegexFn()`.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
