summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/paca.mjs: Temporarily export internal functionsEuAndreh2025-07-121-4/+4
|
* src/paca.mjs (tokenizeRegexStep): Simplify bodyEuAndreh2025-07-111-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()`.
* src/paca.mjs (tokenizeRegexStep): Fix missing concat when escapingEuAndreh2025-07-111-5/+8
|
* src/paca.mjs: Remove calls to arr.concat([]) with unneeded wrapping ↵EuAndreh2025-07-111-14/+6
| | | | singleton array
* src/paca.mjs (tokenizeRegexStep): Support tokenizing range exps {m,n}EuAndreh2025-07-111-2/+98
|
* src/paca.mjs (tokenizeRegexStep): Include `context` key in reduced stateEuAndreh2025-07-111-3/+8
|
* src/paca.mjs: Move error detection from tokenizeRegexStep => tokenizeRegexEuAndreh2025-07-111-8/+12
|
* src/paca.mjs: Remove unused repeat(3) importEuAndreh2025-07-111-1/+1
|
* Finish implementation of unit testsEuAndreh2025-07-091-14/+17
|
* Implement v0 version of NFA and DFA; WIP testsEuAndreh2025-07-071-0/+436