Commit Graph

49 Commits (02b4503205298eba33bef3855f43d3aef55b5884)

Author SHA1 Message Date
Doug Coleman 7c92ab1ea5 move if-zero etc to math, remove 1-/1+ from math 2009-08-14 14:27:23 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Slava Pestov e2fdb0783c Separate regexp.prettyprint from regexp to reduce deployed image size 2009-03-18 17:07:19 -05:00
Slava Pestov be4fb1e7d9 Move call( and execute( to core 2009-03-16 20:11:36 -05:00
Slava Pestov 58d997de5c Refactor regexp.compiler to not all with-compilation-unit so much; benchmark.regex-dna loads about twice as fast now 2009-03-16 05:00:27 -05:00
Slava Pestov 034bda42ca Inline initial state in next-match loop 2009-03-11 17:06:45 -05:00
Slava Pestov 44d36dab9c Merge branch 'master' of git://factorcode.org/git/factor 2009-03-11 16:54:26 -05:00
Slava Pestov 18ca3b3419 Add some declarations so that next-match is faster 2009-03-11 16:53:44 -05:00
Slava Pestov 7dac8de701 Get rid of match tuple 2009-03-11 16:36:53 -05:00
Slava Pestov 643da5f073 Remove match iterators for a performance boost 2009-03-11 16:21:29 -05:00
Daniel Ehrenberg 8b286cea4c Adding word breaks to regexp 2009-03-11 15:51:54 -05:00
Daniel Ehrenberg c193f1b68a Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	basis/regexp/regexp.factor
2009-03-11 14:47:05 -05:00
Daniel Ehrenberg 642b5f9649 Refactoring next-match 2009-03-11 14:45:52 -05:00
Slava Pestov 40dae755b1 Change execute( to execute-unsafe( since in this case we know the types 2009-03-11 14:02:29 -05:00
Daniel Ehrenberg 329875b170 Regexp match iterators are better 2009-03-11 12:29:33 -05:00
Daniel Ehrenberg e2fda2e227 Fixing help-lint for regexp; adding first-match and re-contains? 2009-03-10 19:34:49 -05:00
Daniel Ehrenberg 8836b2a73b matches? works as expected for reversed regexps 2009-03-10 19:17:25 -05:00
Daniel Ehrenberg 638cef2824 Many regexp changes, improving speed and organization 2009-03-10 18:27:04 -05:00
Daniel Ehrenberg 58475217ac Making regexp tests pass by commenting out some minimization and combinator tests 2009-03-08 18:07:36 -05:00
Daniel Ehrenberg 42ff154ead More regexp changes 2009-03-07 16:31:46 -06:00
Daniel Ehrenberg a487ed0f32 Lookaround and anchors work! (still need to fix some bugs) 2009-03-05 16:34:04 -06:00
Daniel Ehrenberg 39011fd062 More class algebra; fixing eliminating the DFA interpreter 2009-03-04 15:54:56 -06:00
Daniel Ehrenberg ca19a1b728 Unfinished changes for regexp lookaround 2009-03-04 13:22:22 -06:00
Daniel Ehrenberg 99a2b95a5b Reorganizing regexp matcher protocol 2009-02-26 22:14:41 -06:00
Daniel Ehrenberg af2d380a7f Regexp compiler used from literals 2009-02-26 18:06:57 -06:00
Daniel Ehrenberg 85432bd267 Various regexp cleanups, and compiler from regexp to quotations 2009-02-26 14:19:02 -06:00
Daniel Ehrenberg 9b14ffad5b Regexp docs, mostly 2009-02-25 16:22:01 -06:00
Daniel Ehrenberg c708bfcbca Various regexp changes, including the addition of regexp combinators 2009-02-25 12:22:12 -06:00
Daniel Ehrenberg 9565b59928 Regexp negation (partial) and cleanup of regexp.nfa 2009-02-19 16:48:46 -06:00
Daniel Ehrenberg fa84f4c752 DFAs are minimized now 2009-02-19 00:11:45 -06:00
Daniel Ehrenberg 77b069ee5c Finish cleanup of regexp 2009-02-18 14:52:10 -06:00
Daniel Ehrenberg b8845cb87e Almost done with regexp cleanup 2009-02-18 12:27:07 -06:00
Daniel Ehrenberg 105ef28433 Rewriting regexp parser 2009-02-16 20:23:00 -06:00
Slava Pestov 3458f8bbef Fix bug in re-split reported by kib2 2009-01-25 23:20:17 -06:00
Slava Pestov 4f0a9f311e Untangling some dependencies 2008-12-08 14:58:00 -06:00
Doug Coleman 384a11ecee move things around. the parser no longer adjusts nodes based on options, instead opting for nfa to handle it (case-insensitive, multiline, dotall, reversed..) 2008-11-24 22:17:47 -06:00
Doug Coleman db3c21663e better literal syntax for regexps. support ^ and $ (not in multiline mode yet) but not yet in multiline mode. support for \A and \Z \z is next. removed some crud from the parser, and added more commented out unit tests... 2008-11-24 00:18:27 -06:00
Doug Coleman b00156bc85 fix count-matches and add unit test for it 2008-11-22 21:10:53 -06:00
Doug Coleman bcd75e97d3 fix match-all, re-split 2008-11-22 20:01:25 -06:00
Doug Coleman 86546552d3 more slices in regexps, change unit tests 2008-11-22 18:07:57 -06:00
Doug Coleman 22cc7a66f4 remove using for math.ranges 2008-11-22 17:31:40 -06:00
Doug Coleman 09969a5fc2 regexps return a slice instead of a range now 2008-11-22 17:30:16 -06:00
Doug Coleman f5adb971f6 re-enable literal syntax for regexps 2008-11-18 16:09:47 -06:00
Doug Coleman 860bd1923b fix stack effect 2008-11-18 15:59:20 -06:00
Doug Coleman 811026ce4d removing some uses of at* in favor of at, simplifying code 2008-11-06 13:16:33 -06:00
Doug Coleman c252060bb5 first stab at capture groups. they work for unambiguous groups (no overlap), working on fixing it for any case 2008-09-22 20:09:42 -05:00
Doug Coleman 80a9147691 working on lookbehind 2008-09-22 13:37:27 -05:00
Slava Pestov fe071a8908 Move regexp to basis 2008-09-22 02:37:40 -05:00