Commit Graph

230 Commits (ff4c3d8517b71f9ad62f445c89aa2bdac96601c6)

Author SHA1 Message Date
John Benediktsson a3d5789fd4 regexp.classes: use \v\a escapes. 2019-09-24 20:56:29 -07:00
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
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
Doug Coleman 15b13870ae peg.ebnf: Clean up EBNF: syntax.
The syntax for an EBNF parser is now ``EBNF: identifier string``. The
inline syntax went from [EBNF ...  EBNF] to EBNF[[ ]], EBNF[=[ ]=], etc.

<EBNF looked for a main word, but this functionality is just EBNF[[ ]]
now.
2017-08-05 22:23:57 -05:00
Björn Lindqvist 1ca8276df4 basis/,core/,extra/: many new tags 2017-07-06 23:04:18 +02:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Doug Coleman 7c7bb93c55 factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
2017-06-01 13:58:58 -05:00
John Benediktsson 0f1d08a372 using map-reduce instead of unclip reduce. 2017-02-07 12:16:12 -08:00
Alexander Iljin 2fd5654473 Add EOL at EOF for all authors.txt files for consistency
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
John Benediktsson 0e494d31f4 regexp.minimize: a little bit simpler, a little bit faster. 2016-07-18 10:05:38 -07:00
John Benediktsson abbefc96b9 using ``H{ } zip-index-as``.
instead of ``<enum> [ swap ] H{ } assoc-map-as``.
2016-07-16 10:53:36 -07:00
Doug Coleman c5f7ae9d74 regexp.disambiguate: Make it cleaner imo, but still can't make heads of tails of the algorithm being used. 2016-04-12 14:19:18 -07:00
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07: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
John Benediktsson 71ef8a22c2 disambiguate namespaces:set and sets:set. 2016-03-29 17:14:42 -07:00
John Benediktsson c1010144e5 regexp.combinators: fix <char-range>. 2016-03-27 18:49:42 -07:00
Doug Coleman 2f7a4a26cd basis: rename the only four words with backtick in their name. 2016-03-20 21:04:30 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman b6be8685c3 basis: ERROR: changes. 2015-08-13 03:20:39 -07:00
Doug Coleman e0d1b14e5c factor: don't need FROM: namespaces => set or namespaces:set anymore 2015-08-12 11:25:57 -05:00
Doug Coleman 330c7ba156 factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -05:00
Doug Coleman 76cb13ac52 basis: use harvest-values 2015-08-08 12:24:22 -05:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -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
Doug Coleman 2adeed9cb3 factor: rename classes:members to class-members so it doesn't conflict with sets:members. ugh. 2015-07-20 00:32:42 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -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
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson 296968580a use assoc-reject instead of [ ... not ] assoc-filter. 2015-05-12 19:08:42 -07:00
John Benediktsson b366a06c41 use reject instead of [ ... not ] filter. 2015-05-12 18:50:34 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 8089bbaeab regexp.parser: fix for recent unicode.scripts change. 2014-05-19 20:51:01 -07:00
John Benediktsson af48be41c8 Revert "regexp.compiler: slightly faster with t/f check."
This reverts commit 9dcaa5c7e690bc38e468f355cbbafd3c5b299f90.
2014-05-19 10:04:16 -07:00
John Benediktsson 647b8ffb46 regexp.compiler: slightly faster with t/f check. 2014-05-18 20:42:02 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 8e4ce647d3 regexp: adding re-replace-with. 2014-05-18 13:48:22 -07:00
John Benediktsson 4b9b14308d regexp.minimize: use sort-pair instead of natural-sort. 2013-04-02 16:54:25 -07:00
John Benediktsson e9aeef7a5e regexp.dfa: more use of hash-sets. 2013-03-08 16:50:59 -08:00
John Benediktsson 87f55eb033 Change "3dup drop" to "2over". 2012-10-22 20:45:15 -07:00
Doug Coleman 8bfed897a8 combinators.smart: Add cleave>array. 2012-09-16 17:32:27 -07:00