aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2025-06-09examples: add minilua exampleHEADmainAnotherSubatomo-0/+35
This only shows off the lexer for now, but it does demonstrate the drops feature. Useful as a regression test for #1. Acked-by: ChloƩ Vulquin <code@toast.bunkerlabs.net>
2025-06-08patok: use `self:next()` over `self.next()` when dropping tokensChloƩ Vulquin-1/+1
Fixes: #1 Reported-By: https://github.com/AnotherSubatomo
2022-10-13fix obvious syntax errorsChloe Kudryavtsev-2/+2
2022-10-13experimental: add the ability to drop inputs and lexer-level alternatesChloe Kudryavtsev-10/+34
2022-01-17this convention will be the end of meChloe Kudryavtsev-0/+0
2022-01-17how did that happenChloe Kudryavtsev-0/+0
2022-01-17release 1.2.0v1.2.0Chloe Kudryavtsev-0/+24
2022-01-17add eof to READMEChloe Kudryavtsev-0/+55
2022-01-17add eof, patch parse to work with itChloe Kudryavtsev-4/+15
2021-12-29update examples and readme for 1.1Chloe Kudryavtsev-3/+3
2021-12-29release 1.1-0Chloe Kudryavtsev-0/+24
2021-12-29optimize patok patternsv1.1.0Chloe Kudryavtsev-1/+1
a lua pattern starting with ^ selects the first index (rather than the true string start) we can thus make the patterns fail for failed matches much faster by manually prepending a '^' for larger strings, this could be a gigantic speed improvement
2021-12-29change pm.parse apiChloe Kudryavtsev-1/+7
before: returns eind, out as-is from the top parser after: returns the output, the string index of the final token, and (in the case of failure) the string index of the would-be next token
2021-12-24add rockspecChloe Kudryavtsev-0/+24
2021-12-23oops, these weren't supposed to be herev1.0.0Chloe Kudryavtsev-470/+0
in case someone is curious: cni.lua was a sample parser for cni 2.0 once that's out it'll be added to the examples inspect.lua is https://github.com/kikito/inspect.lua and I was using it to develop/test this ^^;;
2021-12-23patch readme example grammar lexer initializationChloe Kudryavtsev-1/+471
2021-12-23add math.lua exampleChloe Kudryavtsev-0/+63
2021-12-23initial importChloe Kudryavtsev-0/+402
2021-12-23Initial commitChloe Kudryavtsev-0/+24