summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-07-11 21:49:57 -0300
committerEuAndreh <eu@euandre.org>2025-07-11 21:50:04 -0300
commit42001c72522293fe9ba2ba17901eda89add6f3fa (patch)
tree5f513170bb984f22e092c6aeb36d859ffaaf5040 /Makefile
parenttests/paca.mjs (test_tokenizeRegexStep): Simplify table values (diff)
downloadpaca-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