Commit graph

77 commits

Author SHA1 Message Date
gemath
db68bbe4f7 Pegs AST read access (#8050)
* 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.
2018-06-19 18:13:33 +01:00
data-man
df37796d88 Fixes pegs bugs, continue 2018-05-23 10:23:19 +03:00
data-man
6acbe6fb01 Fixes pegs bugs 2018-05-23 09:45:51 +03:00
Tyler
799674168d Patch the PEG library to work with the JS backend (#7866)
* Added compiler check on transformFile
2018-05-23 05:27:28 +03:00
Andreas Rumpf
6e8d5790c8 pegs: fixes another null accessing bug 2018-05-06 09:00:41 +02:00
Araq
bbb0fd4eb7 remove deprecated stuff from the stdlib; introduce better deprecation warnings 2018-05-05 21:45:07 +02:00
Andreas Rumpf
5758ebf02c more fixes for the new string behaviour 2018-04-30 08:53:31 +02:00
Andreas Rumpf
4375dfd9d0 pegs: don't rely on terminating zero 2018-04-29 07:43:11 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Markus F.X.J. Oberhumer
a0f39e0ab4 Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)
This is a follow-up to #5823.
2017-06-15 20:42:23 +02:00
Joey Payne
b1ab82715e Fix modules that import both strutils and unicode
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.
2016-07-01 07:37:49 -06:00
Andreas Rumpf
1a88c01f92 documentation build cleaned up 2016-05-31 03:04:45 +02:00
Andreas Rumpf
c02963bcea Pegs: fixes edge case 2016-05-12 01:36:23 +02:00
Hans Raaf
fcfe27a1f8 Added a replace() proc using a callback to pegs.
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.
2016-05-07 17:53:43 +02:00
Dominik Picheta
3892969af4 Merge branch 'devel' 2015-10-27 23:36:00 +01:00
Federico Ceratto
d1bb246c20 Replace "prefix" with "suffix" in endsWith doc 2015-10-23 17:35:55 +01:00
patrick dw
15e7fe787a renamed writeln to writeLine in lib 2015-06-19 01:02:22 -05:00
Araq
1b98d32579 no private deprecated symbols 2015-06-10 11:11:29 +02:00
pdw
d18e18060e lib/pure/p-t - Dropped 'T' from types 2015-06-04 13:18:36 +02:00
Simon Hafner
179a190f67 fixes match on empty peg match, #2354 2015-03-22 21:39:26 +05:00
Araq
c914532c26 fixes #2205 2015-03-07 15:43:35 +01:00
def
aae3c6c8b7 Get rid of deprecation warnings in pegs 2015-01-16 00:23:33 +01:00
Araq
03afbe00b9 minor improvements 2014-12-28 00:52:10 +01:00
Araq
280fa9624c fixes #1496 2014-12-18 14:54:26 +01:00
Araq
c2e04abcfa fixes regression that caused pegs to not compile 2014-11-29 14:08:42 +01:00
Araq
4def86f077 pegs module compiles again 2014-11-28 09:39:23 +01:00
Flaviu Tamas
bc3464ede7 Modify pegs.nim such that no match will return nil
An empty match will return ""
A zero-length match will return nil

Add test cases

Add news information
2014-10-29 17:54:43 -04:00
Araq
cca8887ba0 updated pegs module 2014-08-28 02:26:22 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
dd806cafa0 distinguish between 'defined' and 'declared' 2014-08-11 20:38:28 +02:00
Fabio Cevasco
067c3816ba Rewrote the changes to findAll using if/else 2014-02-22 10:07:37 +01:00
Fabio Cevasco
6621454dec pegs.findAll iterator fix
Modified the findAll iterator so that it continues looking for a match within the input string (bug?).
2014-02-21 14:14:43 +01:00
Araq
d18f40b4e2 updated grammar.txt 2014-01-20 08:35:09 +01:00
Araq
bf205fa85d case consistency part 6 2013-12-28 01:17:02 +01:00
Araq
8f97f3180a made tests green 2013-06-10 00:17:10 +02:00
Araq
b767f34b6b manyloc test should be green again 2013-06-04 00:58:43 +02:00
Araq
44c4b945eb pegs/re =~ warns about scope rule change; improved docs 2013-05-08 15:49:04 +02:00
Araq
cc591cf3c1 pegs compiles again 2013-05-02 01:54:42 +02:00
Araq
56045ad7ff bugfixes mostly JS related 2013-05-01 14:48:40 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
d17caa86e8 objects with no ancestor are not implicitely final 2012-08-24 17:33:04 +02:00
Araq
5e15dec175 first steps to make templates hygienic 2012-08-20 01:13:13 +02:00
Araq
0171566c98 openarray/varargs split; breaks bootstrapping 2012-08-16 08:34:33 +02:00
Dominik Picheta
b839e42e92 Both the re and pegs module's =~ templates can now be used simultaneously from the same module. 2012-07-21 11:21:41 +01:00
Araq
a36a856a2f fixes #113 2012-05-20 12:09:47 +02:00
Araq
3700885573 fixes #114 2012-05-20 10:58:24 +02:00
Araq
da9ff288d9 Merge branch 'master' of github.com:Araq/Nimrod 2012-04-15 10:02:35 +02:00
Araq
959e370ae9 @ is a sigil-like operator 2012-04-15 10:02:15 +02:00
Zahary Karadjov
1ba31f8df7 minor changes to make the test suite green again 2012-04-15 02:54:12 +03:00
Araq
c53ad1b39f documentation improvements; higher level Mongodb wrapper 2012-04-09 11:18:10 +02:00