summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-07-12src/paca.mjs: Temporarily export internal functionsEuAndreh1-4/+4
2025-07-11src/paca.mjs (tokenizeRegexStep): Simplify bodyEuAndreh1-105/+127
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()`.
2025-07-11tests/paca.mjs (test_tokenizeRegexStep): Simplify table valuesEuAndreh1-704/+322
2025-07-11src/paca.mjs (tokenizeRegexStep): Fix missing concat when escapingEuAndreh1-5/+8
2025-07-11tests/paca.mjs: Add tests for numFromDigits()EuAndreh1-0/+17
2025-07-11src/paca.mjs: Remove calls to arr.concat([]) with unneeded wrapping ↵EuAndreh1-14/+6
singleton array
2025-07-11src/paca.mjs (tokenizeRegexStep): Support tokenizing range exps {m,n}EuAndreh2-2/+638
2025-07-11src/paca.mjs (tokenizeRegexStep): Include `context` key in reduced stateEuAndreh2-121/+152
2025-07-11src/paca.mjs: Move error detection from tokenizeRegexStep => tokenizeRegexEuAndreh2-26/+34
2025-07-11tests/paca.mjs (test_tokenizeRegexStep): Compute `char` and `index`EuAndreh1-20/+7
2025-07-11src/paca.mjs: Remove unused repeat(3) importEuAndreh1-1/+1
2025-07-09Makefile: Minor fixes of indentation and alignmentEuAndreh1-3/+3
2025-07-09Finish implementation of unit testsEuAndreh2-31/+881
2025-07-07Implement v0 version of NFA and DFA; WIP testsEuAndreh6-0/+1898