Commit Graph

66 Commits (ff4c3d8517b71f9ad62f445c89aa2bdac96601c6)

Author SHA1 Message Date
John Benediktsson 26abdf4a23 regexp: try again to fix the issue with backslashes.
the new simple rule is inside R/ syntax all backslashes should be
escaped to allow easy regexp literal tokenization:

R/ [\/]/

but in the constructor <regexp> they shouldn't be:

"[/]" <regexp>

When the regexp is prettyprinted we make sure to visually escape the
backslashes in the raw regexp.
2019-03-21 13:29:15 -07:00
Alexander Iljin 8a4dba4cd9 Fix the existing IN: suffixes for the test vocabs
Change some existing vocab name suffixes from "-tests" or ".test" to
".tests". Add no new suffixes.
2018-01-24 16:03:48 -08:00
John Benediktsson cba0a96c10 regexp: one R/ syntax to rule them all, simpler this way. 2016-03-30 21:09:08 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Slava Pestov cdb52119a0 regexp: fix test 2010-07-23 20:40:44 -07:00
Slava Pestov 44dc1aadc0 regexp: fix match iteration with empty matches, and fix reverse regexes since they were totally broken (bugs reported by Joe Groff and various others) 2010-07-23 19:44:39 -07:00
Daniel Ehrenberg 88e88207ff Fixing bug in regexp \P 2010-03-23 00:30:49 -04:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Doug Coleman 7a1841f59b (( -- )) eval -> eval( -- ) 2009-04-17 15:49:21 -05:00
Doug Coleman dba4c0d589 fixing compiler errors in basis 2009-04-17 12:46:04 -05:00
Daniel Ehrenberg d6f9947bff Regexp character class intersection and difference syntax 2009-03-21 02:53:36 -05:00
Daniel Ehrenberg 9760f54857 Regexp supports Unicode properties (categories and script) 2009-03-20 19:03:26 -05:00
Daniel Ehrenberg ababfe80ef More regexp docs; unix line ending support 2009-03-16 17:53:38 -05:00
Slava Pestov 44d36dab9c Merge branch 'master' of git://factorcode.org/git/factor 2009-03-11 16:54:26 -05:00
Slava Pestov 643da5f073 Remove match iterators for a performance boost 2009-03-11 16:21:29 -05:00
Daniel Ehrenberg 23c8b375cc Uncommenting most remaining regexp unit tests 2009-03-11 16:06:14 -05:00
Daniel Ehrenberg 8b286cea4c Adding word breaks to regexp 2009-03-11 15:51:54 -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 6ccd58f278 Making all the regexp words compile 2009-03-09 17:29:32 -05:00
Daniel Ehrenberg f7031eaad8 Commenting out the last failing regexp unit tests :( 2009-03-08 18:25:09 -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 ca19a1b728 Unfinished changes for regexp lookaround 2009-03-04 13:22:22 -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 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 c708bfcbca Various regexp changes, including the addition of regexp combinators 2009-02-25 12:22:12 -06:00
Daniel Ehrenberg e41cdf5e8f Various unfinshed regexp changes 2009-02-20 17:54:48 -06:00
Daniel Ehrenberg b8845cb87e Almost done with regexp cleanup 2009-02-18 12:27:07 -06:00
Daniel Ehrenberg 41312ae2e5 Unfinished changes to regexp 2009-02-15 14:28:22 -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
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 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 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 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