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
John Benediktsson
b3bcf537cc
Revert "regexp: fix take-until to handle escapes at the end of a regexp."
...
This reverts commit 2136abc1d6
.
2019-03-18 10:42:40 -07:00
John Benediktsson
6339558368
Revert "regexp: slightly more complicated tokenization to handle another case."
...
This reverts commit 9f0bce7622
.
2019-03-18 10:42:29 -07:00
John Benediktsson
9f0bce7622
regexp: slightly more complicated tokenization to handle another case.
...
R/ [^/]/
R/ (/|abc)/
2019-03-17 13:14:28 -07:00
John Benediktsson
2136abc1d6
regexp: fix take-until to handle escapes at the end of a regexp.
...
this worked:
R\ //.\
this didn't:
R\ //\
2019-03-17 09:52:53 -07:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
Doug Coleman
f5cea754b5
regexp: Fix / escape in regexp. Fixes validators test.
2016-03-30 23:28:12 -07:00
John Benediktsson
be8c711d3e
regexp: need this to be (parse-raw).
2016-03-30 21:26:12 -07: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
2f7a4a26cd
basis: rename the only four words with backtick in their name.
2016-03-20 21:04:30 -07:00
Doug Coleman
b39d4c54a4
regexp: remove R" R[ and R{, there are still plenty of options and better ones to come.
2015-07-21 17:33:14 -07:00
John Benediktsson
8e4ce647d3
regexp: adding re-replace-with.
2014-05-18 13:48:22 -07:00
Joe Groff
47cedd8d3d
slice boa -> <slice-unsafe>
...
If you didn't define it, don't boa it
2011-11-09 19:22:09 -08:00
John Benediktsson
80e1c8e3f2
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -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
aa6158b366
Changing require-when usages to the new syntax for require-when
2010-04-18 14:29:24 -05:00
Daniel Ehrenberg
eb060443db
Updating code to use require-when rather than vocab [ require ] when
2010-03-18 01:13:37 -04:00
Joe Groff
191ac353fd
generalize stack effects so we can bootstrap with the stricter stack effect checking
2010-03-08 23:38:10 -08:00
Doug Coleman
8c1d202b4c
Rename accumulator to collector, pusher to selector
2010-01-22 15:00:53 -06:00
Doug Coleman
7ce4b746e5
parsed -> suffix!, add append!
2009-10-28 13:38:27 -05:00
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