| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add "[" to the possible characters of TRANSITION_FNS. | EuAndreh | 2025-07-13 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | Introducing "[" now we will start to write the code to parse the character class expressions, i.e. [a-z0-9]. The `context` key will contain a `set` with all the literal characters that were found, and all the ranges too. For parsing the ranges, a `range` key equivalent to the one for the {m,n} range is used. Despite the superficial syntax being simmilar, its logic, semantic and implementation will be different. * src/paca.mjs (TRANSITION_FNS) <"[">: Add new transition function for handling the start of a character class expression. * tests/paca.mjs (TRANSITION_FNS): Add a singular test entry, that exercises the conditionless body of the function. | ||||
| * | Add simple test for TRANSITION_FNS | EuAndreh | 2025-07-13 | 1 | -0/+33 |
| | | | | | | | | | | | * src/paca.mjs (TRANSITION_FNS): Add trailing underscore to ignored arguments, even though it breaks the name of the `_state` and `context` destructuring arguments. * tests/paca.mjs (test_TRANSITION_FNS): Add new test function with a single case for each transition character. Since these transitions are unconditional and contain no logic, this single sample test is enough to cover for all of its behaviour. | ||||
| * | tests/paca.mjs (test_tokenizeRegexStep): Simplify table values | EuAndreh | 2025-07-11 | 1 | -704/+322 |
| | | |||||
| * | tests/paca.mjs: Add tests for numFromDigits() | EuAndreh | 2025-07-11 | 1 | -0/+17 |
| | | |||||
| * | src/paca.mjs (tokenizeRegexStep): Support tokenizing range exps {m,n} | EuAndreh | 2025-07-11 | 1 | -0/+540 |
| | | |||||
| * | src/paca.mjs (tokenizeRegexStep): Include `context` key in reduced state | EuAndreh | 2025-07-11 | 1 | -118/+144 |
| | | |||||
| * | src/paca.mjs: Move error detection from tokenizeRegexStep => tokenizeRegex | EuAndreh | 2025-07-11 | 1 | -18/+22 |
| | | |||||
| * | tests/paca.mjs (test_tokenizeRegexStep): Compute `char` and `index` | EuAndreh | 2025-07-11 | 1 | -20/+7 |
| | | |||||
| * | Finish implementation of unit tests | EuAndreh | 2025-07-09 | 1 | -17/+864 |
| | | |||||
| * | Implement v0 version of NFA and DFA; WIP tests | EuAndreh | 2025-07-07 | 1 | -0/+1351 |
