summary refs log tree commit diff stats
path: root/lib/pure/pegs.nim
Commit message (Collapse)AuthorAgeFilesLines
* [backport] Docs: Fix broken `code-block` (#14749)ee72020-06-221-20/+20
| | | | | | | | This commit indents the contents of a `code-block` in `httpclient.nim` so that it displays correctly. The bug was introduced by 42a64245f8. I did a quick search for other `code-block`s that are broken in the same way, but the only other one I found (in `pegs.nim`) is not included in the generated documentation.
* fixes #14718 [backport]Araq2020-06-191-4/+4
|
* Update pegs.nim to work at compiletime. No range errors. (#13459)solo9892020-02-271-164/+186
|
* remove deprecated procs (#12535)Andreas Rumpf2019-11-051-2/+4
|
* [backport] run nimpretty on the remaining filesnarimiran2019-09-301-80/+81
|
* fixes #12121 (#12126)Andreas Rumpf2019-09-051-3/+4
|
* minor style changesAraq2019-07-101-36/+36
|
* fixes #1286; object case transitions are now soundAndreas Rumpf2019-05-271-55/+39
|
* Allow void macro result (#11286)Arne Döring2019-05-211-1/+1
| | | | | * allow void macro result * add test for void macro result type
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-25/+18
|
* removes deprecated T/P typesAraq2018-11-161-9/+7
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|
* Add interpreting event parser proc to pegs module. (#8075)gemath2018-08-241-211/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added simple interpreting event parser to pegs module. * Has side-effects problem. * Macro solution works. * First flat callback test works. * Fixed namespace pollution. * Added handler for pkChar. * Replaced event parser test. * Started extensive docs. * 'callback' to 'handler' renaming part 1. * Renaming 'callback' to 'handler' part2, completed comments. * Fixed exported API pollution. * Added more event handler hooks, fixed comments. * Changed event parser addition entry. * Fixed variable names and comments. * Enhanced comment. * Leave handlers are not called for an unsuccessful match. * The three varieties of back-reference matches are processed in separate of-clauses now. * Improved hygiene and (almost) eliminated exports. * Trying to fix CI test breakage by eliminating export. * Trying to fix CI test breakage by eliminating exports. * Re-activated leave handler code execution for unsuccessful matches. * Eliminated the last export statement (with a funny smelling hack). * Make sure leave handler code is executed for all unsuccessful matcher cases. * Replaced local unicode.`==` with export.
* make more tests greenAndreas Rumpf2018-08-131-1/+1
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-1/+1
|
* Pegs AST read access (#8050)gemath2018-06-191-2/+21
| | | | | | | | | | | | * Make PEG AST nodes readable from outside the module. * Added a test module for the pegs stdlib module. * Edited changelog. * Renamed ``sons`` iterator to ``items``, added ``pairs``, inlined both. * Updated entry and moved it to the right category.
* Fixes pegs bugs, continuedata-man2018-05-231-12/+22
|
* Fixes pegs bugsdata-man2018-05-231-11/+11
|
* Patch the PEG library to work with the JS backend (#7866)Tyler2018-05-231-8/+12
| | | * Added compiler check on transformFile
* pegs: fixes another null accessing bugAndreas Rumpf2018-05-061-1/+1
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-7/+3
|
* more fixes for the new string behaviourAndreas Rumpf2018-04-301-1/+1
|
* pegs: don't rely on terminating zeroAndreas Rumpf2018-04-291-17/+25
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-11/+11
|
* Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)Markus F.X.J. Oberhumer2017-06-151-1/+1
| | | This is a follow-up to #5823.
* Fix modules that import both strutils and unicodeJoey Payne2016-07-011-2/+2
| | | | | This is only an issue when a proc in both modules that is named the same is used, such as toLower or toUpper for strings.
* documentation build cleaned upAndreas Rumpf2016-05-311-1/+1
|
* Pegs: fixes edge caseAndreas Rumpf2016-05-121-2/+6
|
* Added a replace() proc using a callback to pegs.Hans Raaf2016-05-071-0/+59
| | | | | | I was missing a nice way to use pegs with a more specialized replace functionality. Here my try to create a universal and versatile version of replace for that.
* Merge branch 'devel'Dominik Picheta2015-10-271-24/+24
|\
| * renamed writeln to writeLine in libpatrick dw2015-06-191-1/+1
| |
| * no private deprecated symbolsAraq2015-06-101-1/+0
| |
| * lib/pure/p-t - Dropped 'T' from typespdw2015-06-041-23/+24
| |
* | Replace "prefix" with "suffix" in endsWith docFederico Ceratto2015-10-231-1/+1
|/
* fixes match on empty peg match, #2354Simon Hafner2015-03-221-20/+26
|
* fixes #2205Araq2015-03-071-155/+155
|
* Get rid of deprecation warnings in pegsdef2015-01-161-1/+1
|
* minor improvementsAraq2014-12-281-1/+1
|
* fixes #1496Araq2014-12-181-1/+1
|
* fixes regression that caused pegs to not compileAraq2014-11-291-1/+1
|
* pegs module compiles againAraq2014-11-281-1/+1
|
* Modify pegs.nim such that no match will return nilFlaviu Tamas2014-10-291-1/+17
| | | | | | | | | An empty match will return "" A zero-length match will return nil Add test cases Add news information
* updated pegs moduleAraq2014-08-281-38/+38
|
* big renameAraq2014-08-271-140/+132
|
* distinguish between 'defined' and 'declared'Araq2014-08-111-1/+1
|
* Rewrote the changes to findAll using if/elseFabio Cevasco2014-02-221-3/+3
|
* pegs.findAll iterator fixFabio Cevasco2014-02-211-1/+3
| | | Modified the findAll iterator so that it continues looking for a match within the input string (bug?).
* updated grammar.txtAraq2014-01-201-4/+4
|
* case consistency part 6Araq2013-12-281-64/+64
|
* made tests greenAraq2013-06-101-1/+1
|