Commit Graph

140 Commits (bea4aa76624e94a66360ae9b79afc8b938e6a65f)

Author SHA1 Message Date
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 ec5bad2f7c Removing regexp interpreter 2009-03-11 11:58:58 -05:00
Daniel Ehrenberg 3cd4f3f626 Fixing regexp docs typo 2009-03-11 11:57:26 -05:00
Daniel Ehrenberg 33822922d4 Removing regexp.matchers vocab, merged into regexp 2009-03-11 00:10:11 -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 6ccd58f278 Making all the regexp words compile 2009-03-09 17:29:32 -05:00
Daniel Ehrenberg 72c4736936 Renaming an internal word in regexp 2009-03-09 15:44:11 -05:00
Daniel Ehrenberg 5cd1c8db52 Fixing regexp minimization 2009-03-08 22:34:11 -05:00
Daniel Ehrenberg 8418f8f39a More docs for regexps 2009-03-08 20:25:33 -05:00
Daniel Ehrenberg 762485c2ca Fixing xmode use lines; adding fake reluctant ?*+ to make XMode work (they're actually greedy) 2009-03-08 18:50:41 -05:00
Daniel Ehrenberg f7031eaad8 Commenting out the last failing regexp unit tests :( 2009-03-08 18:25:09 -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 c31c9fe28d Cleaning up transition tables; making \Z zero-width 2009-03-05 17:44:29 -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 eb231df4e7 Beginnings of lookahead and lookbehind 2009-03-04 00:36:03 -06:00
Daniel Ehrenberg 1740b85598 Fixing bug in disambiguation in regexps 2009-03-03 19:22:53 -06:00
Daniel Ehrenberg a28a80abcf Regexp uses sequences:map-find now 2009-03-03 12:41:50 -06:00
Daniel Ehrenberg 8a40ef0cdd Adding unit tests 2009-03-02 16:30:42 -06:00
Daniel Ehrenberg 0b5ebce339 Switching basis/globs to regexps (and EBNF for syntax); this exposes a bug in regexp 2009-03-02 15:31:28 -06:00
Daniel Ehrenberg 03ae348e78 Making regexp load; removing multimethod dependency 2009-03-02 12:39:01 -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 ba1ac44176 Disambiguation works completely in regexp 2009-02-23 13:10:38 -06:00
Daniel Ehrenberg 88f9b3ea92 Work on class algebra for regexp 2009-02-21 17:13:11 -06:00
Daniel Ehrenberg be177fefa0 Disambiguation of overlapping regexp transitions 2009-02-21 12:09:41 -06:00
Daniel Ehrenberg 041be23cdc trivial change in regexp 2009-02-20 18:45:24 -06:00
Daniel Ehrenberg e41cdf5e8f Various unfinshed regexp changes 2009-02-20 17:54:48 -06:00
Daniel Ehrenberg f535b66aed Negation almost complete in regexp 2009-02-19 18:28:54 -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
Daniel Ehrenberg 41312ae2e5 Unfinished changes to regexp 2009-02-15 14:28:22 -06:00
Daniel Ehrenberg ff265aa919 XMode doesn't use parser combinators at all; regexes allow parens for grouping 2009-02-12 20:42:32 -06:00
Slava Pestov efc88c5b69 Remove nipd, 3nip, 4nip and tuckd from basis/shuffle 2009-02-09 18:11:42 -06:00
Slava Pestov 3458f8bbef Fix bug in re-split reported by kib2 2009-01-25 23:20:17 -06:00
Slava Pestov 5c20705ed3 Add failing unit test for regexp 2009-01-25 17:06:08 -06:00
Slava Pestov f34c14a0f5 Remove some usages of tuck 2009-01-23 18:20:47 -06:00
U-C4\Administrator 7ba4035993 some regexp features are broken. temporarily remove the regexp features that are broken 2009-01-20 11:53:50 -06:00
Slava Pestov e6aa33ac12 Add new intersects? word and use it in a few places instead of intersect empty? 2009-01-12 01:51:38 -06:00
Daniel Ehrenberg ad53cb8635 Privatizing unicode.case:ch>{lower,upper,title} 2009-01-08 19:07:46 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov 4f0a9f311e Untangling some dependencies 2008-12-08 14:58:00 -06:00
Slava Pestov 13748bc623 Comment out tests... *sigh* 2008-11-30 19:06:28 -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 e4a2b671d3 remove flags from transition-tables 2008-11-24 22:16:29 -06:00
Doug Coleman f8a23c657b a bit of refactoring, preparing to take options out of the parsing stage 2008-11-24 12:59:29 -06:00
Doug Coleman 23ac947162 remove <iregexp> 2008-11-24 01:21:18 -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 afc97627f9 remove >r r> from regexp 2008-11-22 23:01:24 -06:00
Doug Coleman b00156bc85 fix count-matches and add unit test for it 2008-11-22 21:10:53 -06:00
Doug Coleman 6c5f761503 re-enable a unit test 2008-11-22 21:09:31 -06:00
Doug Coleman 87fb9c0971 another test for turning off dotall mode inline 2008-11-22 21:06:47 -06:00
Doug Coleman ba680fae6f handle dotall mode -- . matches newlines when it's on. dotall mode is off by default. rearrange unit tests a bit 2008-11-22 21:04:09 -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 e110bac51a better parsing of constants 2008-11-22 16:50:40 -06:00
Slava Pestov fb2523dc81 Revert "disable regexp failing tests for now"
This reverts commit 020a866e42.
2008-11-19 01:57:44 -06:00
Doug Coleman 020a866e42 disable regexp failing tests for now 2008-11-18 23:56:51 -06:00
Slava Pestov 4ab91ee742 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-18 16:16:41 -06:00
Slava Pestov fc1754e4a0 Add two failing tests 2008-11-18 16:16:34 -06:00
Doug Coleman f5adb971f6 re-enable literal syntax for regexps 2008-11-18 16:09:47 -06:00
Doug Coleman 239bfeafda fix "\\/" <regexp> 2008-11-18 16:06:56 -06:00
Doug Coleman 860bd1923b fix stack effect 2008-11-18 15:59:20 -06:00
Doug Coleman 535a9223bd remove bogus dependency on vars 2008-11-18 15:57:48 -06:00
Doug Coleman 49af5a1ac0 add support for [\\w] and [\\W] 2008-11-18 15:10:24 -06:00
Slava Pestov 5c51d9fd2c Get regexp words to infer 2008-11-17 21:42:59 -06:00
Doug Coleman 46aa56730b better parsing for anchors 2008-11-06 16:53:00 -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 9c5bd1e96d remove debug from regexp 2008-11-01 19:39:49 -05: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 001b7826bc add more advanced lookaround tests 2008-09-22 15:14:45 -05:00
Doug Coleman 864f9ead99 fix negative lookbehind 2008-09-22 14:55:17 -05:00
Doug Coleman 80a9147691 working on lookbehind 2008-09-22 13:37:27 -05:00
Doug Coleman 56fbeb25ff fix options before non-capturing groups 2008-09-22 11:45:36 -05:00
Doug Coleman da35e13153 fix the parser for groups 2008-09-22 10:48:01 -05:00
Doug Coleman c61c9eb625 Merge branch 'master' of git://factorcode.org/git/factor 2008-09-22 10:16:07 -05:00
Slava Pestov fe071a8908 Move regexp to basis 2008-09-22 02:37:40 -05:00