]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agopeg.ebnf: Add partial ebnfs which don't parse the entire input. ebnf-allow-empty
Doug Coleman [Sat, 19 Dec 2020 08:15:09 +0000 (02:15 -0600)]
peg.ebnf: Add partial ebnfs which don't parse the entire input.

By default we should parse the entire input, but also allow partial parses if desired.

3 years agopeg.ebnf: Allow rules with empty single/double quotes.
Doug Coleman [Sat, 19 Dec 2020 08:14:32 +0000 (02:14 -0600)]
peg.ebnf: Allow rules with empty single/double quotes.

EBNF: parse-empty [=[
  a = ""
]=]

3 years agosemver: Add a semver that can do npm version comparisons.
Doug Coleman [Sat, 19 Dec 2020 03:45:16 +0000 (21:45 -0600)]
semver: Add a semver that can do npm version comparisons.

3 years agoclasses.tuple: shoot, meant this to be in .private.
John Benediktsson [Fri, 18 Dec 2020 06:25:25 +0000 (22:25 -0800)]
classes.tuple: shoot, meant this to be in .private.

3 years agoclasses.tuple: need to defer tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:22:22 +0000 (22:22 -0800)]
classes.tuple: need to defer tuple-layout.

3 years agobootstrap: cleanup using.
John Benediktsson [Fri, 18 Dec 2020 06:21:40 +0000 (22:21 -0800)]
bootstrap: cleanup using.

3 years agoclasses.union: make sure tuple-class has tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:19:58 +0000 (22:19 -0800)]
classes.union: make sure tuple-class has tuple-layout.

When tuples are being redefined it's possible for the layout to be f.

3 years agotime.unix: faster set-system-time.
John Benediktsson [Fri, 18 Dec 2020 06:16:47 +0000 (22:16 -0800)]
time.unix: faster set-system-time.

3 years agobootstrap: this is more fragile than I would like.
John Benediktsson [Fri, 18 Dec 2020 06:15:50 +0000 (22:15 -0800)]
bootstrap: this is more fragile than I would like.

3 years agoimages.processing.rotation: disable on linux temporarily.
John Benediktsson [Fri, 18 Dec 2020 02:59:41 +0000 (18:59 -0800)]
images.processing.rotation: disable on linux temporarily.

3 years agosorting.extras: adding compare-with.
John Benediktsson [Thu, 17 Dec 2020 22:29:46 +0000 (14:29 -0800)]
sorting.extras: adding compare-with.

This compares a sequence of quotations, returning early if any quotation
produces +lt+ or +gt+, but continuing to the next if it returns +eq+.

3 years agocalendar.format: fix timestamp>ymdhms (bad merge).
John Benediktsson [Thu, 17 Dec 2020 04:51:28 +0000 (20:51 -0800)]
calendar.format: fix timestamp>ymdhms (bad merge).

3 years agocalendar: really fix test.
John Benediktsson [Thu, 17 Dec 2020 04:42:48 +0000 (20:42 -0800)]
calendar: really fix test.

3 years agocalendar: fix quarter, add tests.
John Benediktsson [Thu, 17 Dec 2020 04:41:40 +0000 (20:41 -0800)]
calendar: fix quarter, add tests.

3 years agowords: removing unused "constructor-word".
John Benediktsson [Thu, 17 Dec 2020 03:51:58 +0000 (19:51 -0800)]
words: removing unused "constructor-word".

3 years agohelp.syntax: add / and " syntax lookups.
John Benediktsson [Thu, 17 Dec 2020 01:32:58 +0000 (17:32 -0800)]
help.syntax: add / and " syntax lookups.

3 years agodescriptive: fix reset-word on descriptive words.
John Benediktsson [Thu, 17 Dec 2020 00:52:08 +0000 (16:52 -0800)]
descriptive: fix reset-word on descriptive words.

3 years agocalendar: remove unnecessary test.
John Benediktsson [Thu, 17 Dec 2020 00:31:41 +0000 (16:31 -0800)]
calendar: remove unnecessary test.

3 years agolocals.definition: fix reset-word for M::, MACRO::, MEMO::.
John Benediktsson [Thu, 17 Dec 2020 00:28:00 +0000 (16:28 -0800)]
locals.definition: fix reset-word for M::, MACRO::, MEMO::.

call-next-method on an intersection isn't what we want here.

3 years agovocabs.parser: fix with-words to be properly restartable.
John Benediktsson [Thu, 17 Dec 2020 00:03:55 +0000 (16:03 -0800)]
vocabs.parser: fix with-words to be properly restartable.

We want with-words to unuse-words when a restart is provided but
not restarted, but if restarted, we need to use-words again and
then unuse-words.

3 years agocalendar: change >gmt, >local-time to clone.
John Benediktsson [Wed, 16 Dec 2020 22:50:11 +0000 (14:50 -0800)]
calendar: change >gmt, >local-time to clone.

Adding convert-gmt and convert-local-time if you don't want to clone.

3 years agohelp.syntax: $examples with all strings should be turned to code.
John Benediktsson [Wed, 16 Dec 2020 18:42:13 +0000 (10:42 -0800)]
help.syntax: $examples with all strings should be turned to code.

3 years agogrouping.extras: slightly slower but easier to maintain.
John Benediktsson [Wed, 16 Dec 2020 18:11:59 +0000 (10:11 -0800)]
grouping.extras: slightly slower but easier to maintain.

3 years agogrouping.extras: much faster group-map.
John Benediktsson [Wed, 16 Dec 2020 17:46:41 +0000 (09:46 -0800)]
grouping.extras: much faster group-map.

3 years agogrouping.extras: better {clump,group}-map.
John Benediktsson [Wed, 16 Dec 2020 17:22:41 +0000 (09:22 -0800)]
grouping.extras: better {clump,group}-map.

Specifically, clump-map is faster and both clump-map and group-map are
improved to call non-inlined sequences.

3 years agogrouping.extras: adding ngroup-map and some utility words.
John Benediktsson [Wed, 16 Dec 2020 15:41:07 +0000 (07:41 -0800)]
grouping.extras: adding ngroup-map and some utility words.

pad-group extends a sequence to make sure the last group if full.
short-group slices a sequence to make sure groups all same size.

3 years agocalendar: use clone >gmt in a few places.
John Benediktsson [Wed, 16 Dec 2020 03:58:58 +0000 (19:58 -0800)]
calendar: use clone >gmt in a few places.

3 years agohelp.syntax: more blocks.
John Benediktsson [Wed, 16 Dec 2020 03:12:16 +0000 (19:12 -0800)]
help.syntax: more blocks.

3 years agovocabs.parser: use finally instead of ``[ ] cleanup``.
John Benediktsson [Wed, 16 Dec 2020 02:59:37 +0000 (18:59 -0800)]
vocabs.parser: use finally instead of ``[ ] cleanup``.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:50:54 +0000 (17:50 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup and then search
generally if the token looks like syntax.

3 years agoRevert "help.syntax: prevent unnecessary ambiguous-use-errors."
John Benediktsson [Wed, 16 Dec 2020 01:43:12 +0000 (17:43 -0800)]
Revert "help.syntax: prevent unnecessary ambiguous-use-errors."

This reverts commit b14f6853c2e4691a2b6aa0e52f31918d47efde77.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:42:23 +0000 (17:42 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup.

3 years agosets: rename combine/refine to union-all/intersect-all
Benjamin Pollack [Tue, 15 Dec 2020 21:01:49 +0000 (16:01 -0500)]
sets: rename combine/refine to union-all/intersect-all

Closes #2385

3 years agofunctors: use with-words instead of more fragile qualified-vocabs pop*.
John Benediktsson [Wed, 16 Dec 2020 01:23:30 +0000 (17:23 -0800)]
functors: use with-words instead of more fragile qualified-vocabs pop*.

3 years agolocals.parser: use with-words again.
John Benediktsson [Tue, 15 Dec 2020 21:23:27 +0000 (13:23 -0800)]
locals.parser: use with-words again.

3 years agovocabs.parser: fix with-words.
John Benediktsson [Tue, 15 Dec 2020 21:22:06 +0000 (13:22 -0800)]
vocabs.parser: fix with-words.

Got the cleanup quots backwards, need to be cleanup-always.

3 years agoctags.etags: fix ARTICLE: docs.
John Benediktsson [Tue, 15 Dec 2020 19:13:55 +0000 (11:13 -0800)]
ctags.etags: fix ARTICLE: docs.

3 years agomath.matrices.elimination: fix $snippet to $link in docs.
John Benediktsson [Tue, 15 Dec 2020 19:10:55 +0000 (11:10 -0800)]
math.matrices.elimination: fix $snippet to $link in docs.

3 years agocalendar.holidays.us: cleanup using.
John Benediktsson [Tue, 15 Dec 2020 18:42:46 +0000 (10:42 -0800)]
calendar.holidays.us: cleanup using.

3 years agohelp.syntax: short circuit earlier when search returns f.
John Benediktsson [Tue, 15 Dec 2020 17:19:35 +0000 (09:19 -0800)]
help.syntax: short circuit earlier when search returns f.

3 years agosets: add docs about sequence ordering with members.
John Benediktsson [Tue, 15 Dec 2020 17:14:54 +0000 (09:14 -0800)]
sets: add docs about sequence ordering with members.

3 years agohelp.syntax: allow help.markup to be parsed as a literal.
John Benediktsson [Tue, 15 Dec 2020 17:13:18 +0000 (09:13 -0800)]
help.syntax: allow help.markup to be parsed as a literal.

3 years agoroman: try easy-help on article.
John Benediktsson [Tue, 15 Dec 2020 16:54:06 +0000 (08:54 -0800)]
roman: try easy-help on article.

3 years agohelp.syntax: simplify code-lines.
John Benediktsson [Tue, 15 Dec 2020 16:33:24 +0000 (08:33 -0800)]
help.syntax: simplify code-lines.

3 years agohelp.syntax: some fixes for $examples blocks with text.
John Benediktsson [Tue, 15 Dec 2020 15:29:45 +0000 (07:29 -0800)]
help.syntax: some fixes for $examples blocks with text.

3 years agoregexp: fixing the name collision for ^.
John Benediktsson [Tue, 15 Dec 2020 15:26:08 +0000 (07:26 -0800)]
regexp: fixing the name collision for ^.

3 years agohelp.syntax: some fixes for newlines and spaces in blocks.
John Benediktsson [Tue, 15 Dec 2020 06:15:12 +0000 (22:15 -0800)]
help.syntax: some fixes for newlines and spaces in blocks.

3 years agohelp.syntax: start to make ARTICLE: work.
John Benediktsson [Tue, 15 Dec 2020 06:07:28 +0000 (22:07 -0800)]
help.syntax: start to make ARTICLE: work.

3 years agoroman: Trying out easy-help
Doug Coleman [Tue, 15 Dec 2020 05:50:49 +0000 (23:50 -0600)]
roman: Trying out easy-help

3 years agohelp.syntax: when using multiline strings, need to unescape.
John Benediktsson [Tue, 15 Dec 2020 05:45:08 +0000 (21:45 -0800)]
help.syntax: when using multiline strings, need to unescape.

This might be temporary if we decide on raw string vs. escaped string
syntax for multiline.

3 years agoRevert "help.markup: make headings titlecase."
John Benediktsson [Tue, 15 Dec 2020 05:05:30 +0000 (21:05 -0800)]
Revert "help.markup: make headings titlecase."

This reverts commit 6749edd22078fd37e881807e17fc44bb1f05db9a.

3 years agohelp.syntax: fix intermediate double spaces.
John Benediktsson [Tue, 15 Dec 2020 04:59:41 +0000 (20:59 -0800)]
help.syntax: fix intermediate double spaces.

3 years agohelp.syntax: require string examples to be multi-line.
John Benediktsson [Tue, 15 Dec 2020 04:50:55 +0000 (20:50 -0800)]
help.syntax: require string examples to be multi-line.

3 years agohelp.syntax: can't treat $code as text.
John Benediktsson [Tue, 15 Dec 2020 04:47:51 +0000 (20:47 -0800)]
help.syntax: can't treat $code as text.

3 years agohelp.syntax: simplify $example.
John Benediktsson [Tue, 15 Dec 2020 04:38:15 +0000 (20:38 -0800)]
help.syntax: simplify $example.

3 years agohelp.syntax: make sure $example is an array.
John Benediktsson [Tue, 15 Dec 2020 04:33:59 +0000 (20:33 -0800)]
help.syntax: make sure $example is an array.

3 years agohelp.syntax: more tests.
John Benediktsson [Tue, 15 Dec 2020 04:24:28 +0000 (20:24 -0800)]
help.syntax: more tests.

3 years agohelp.syntax: don't double spaces in backwards compatibility.
John Benediktsson [Tue, 15 Dec 2020 04:11:35 +0000 (20:11 -0800)]
help.syntax: don't double spaces in backwards compatibility.

3 years agohelp.syntax: parse-help-values needs to parse-array directly.
John Benediktsson [Tue, 15 Dec 2020 04:08:25 +0000 (20:08 -0800)]
help.syntax: parse-help-values needs to parse-array directly.

3 years agoRevert "locals.parser: use with-words."
John Benediktsson [Tue, 15 Dec 2020 04:06:54 +0000 (20:06 -0800)]
Revert "locals.parser: use with-words."

This reverts commit ccdfb1744890c9a05eaa25a3e2d521278620bbc5.

3 years agohelp.syntax: merge easy-help ideas into HELP:.
John Benediktsson [Tue, 15 Dec 2020 03:59:33 +0000 (19:59 -0800)]
help.syntax: merge easy-help ideas into HELP:.

3 years agoeasy-help: removing prototype.
John Benediktsson [Tue, 15 Dec 2020 03:59:11 +0000 (19:59 -0800)]
easy-help: removing prototype.

3 years agoeasy-help: better $examples.
John Benediktsson [Tue, 15 Dec 2020 03:49:10 +0000 (19:49 -0800)]
easy-help: better $examples.

3 years agoeasy-help: some cleanup and add EASY-HELP: to test an idea.
John Benediktsson [Tue, 15 Dec 2020 03:34:33 +0000 (19:34 -0800)]
easy-help: some cleanup and add EASY-HELP: to test an idea.

3 years agopeg.ebnf: use with-words.
John Benediktsson [Tue, 15 Dec 2020 03:18:20 +0000 (19:18 -0800)]
peg.ebnf: use with-words.

3 years agolocals.parser: use with-words.
John Benediktsson [Tue, 15 Dec 2020 03:18:07 +0000 (19:18 -0800)]
locals.parser: use with-words.

3 years agovocabs.parser: make a with-words combinator that cleans up.
John Benediktsson [Tue, 15 Dec 2020 03:17:33 +0000 (19:17 -0800)]
vocabs.parser: make a with-words combinator that cleans up.

Some places where we use-words / unuse-words could leave the manifest
with extra-words if not cleaned up properly.

3 years agoeasy-help: adding tests.
John Benediktsson [Tue, 15 Dec 2020 00:01:27 +0000 (16:01 -0800)]
easy-help: adding tests.

3 years agoeasy-help: no spaces when punctuation follows.
John Benediktsson [Mon, 14 Dec 2020 23:33:53 +0000 (15:33 -0800)]
easy-help: no spaces when punctuation follows.

3 years agoeasy-help: use $nl instead of \n.
John Benediktsson [Mon, 14 Dec 2020 22:53:10 +0000 (14:53 -0800)]
easy-help: use $nl instead of \n.

3 years agoeasy-help: experiment in new help syntax.
John Benediktsson [Mon, 14 Dec 2020 22:02:01 +0000 (14:02 -0800)]
easy-help: experiment in new help syntax.

3 years agohelp.markup: make headings titlecase.
John Benediktsson [Mon, 14 Dec 2020 21:59:20 +0000 (13:59 -0800)]
help.markup: make headings titlecase.

3 years agohelp.markup: $values print None if ... none.
John Benediktsson [Mon, 14 Dec 2020 21:31:35 +0000 (13:31 -0800)]
help.markup: $values print None if ... none.

3 years agocalendar.holidays: clone timestamps and make holidays mutating.
John Benediktsson [Mon, 14 Dec 2020 21:23:17 +0000 (13:23 -0800)]
calendar.holidays: clone timestamps and make holidays mutating.

3 years agosequences.extras: fix pad-center output type.
John Benediktsson [Mon, 14 Dec 2020 21:21:44 +0000 (13:21 -0800)]
sequences.extras: fix pad-center output type.

3 years ago.travis.yml: change help-lint to not do extra.
John Benediktsson [Mon, 14 Dec 2020 19:40:29 +0000 (11:40 -0800)]
.travis.yml: change help-lint to not do extra.

3 years ago.travis.yml: don't load extra for now, we don't have enough CPU time.
John Benediktsson [Mon, 14 Dec 2020 17:44:09 +0000 (09:44 -0800)]
.travis.yml: don't load extra for now, we don't have enough CPU time.

3 years ago.travis.yml: adding libsodium.
John Benediktsson [Mon, 14 Dec 2020 04:32:35 +0000 (20:32 -0800)]
.travis.yml: adding libsodium.

3 years ago.travis.yml: try this for parser-quiet?.
John Benediktsson [Mon, 14 Dec 2020 03:50:56 +0000 (19:50 -0800)]
.travis.yml: try this for parser-quiet?.

3 years ago.travis.yml: try this to get vocab loading output.
John Benediktsson [Mon, 14 Dec 2020 02:38:22 +0000 (18:38 -0800)]
.travis.yml: try this to get vocab loading output.

3 years ago.travis.yml: split out extra loads.
John Benediktsson [Mon, 14 Dec 2020 01:44:21 +0000 (17:44 -0800)]
.travis.yml: split out extra loads.

3 years ago.travis.yml: fix call to load-from-root.
John Benediktsson [Mon, 14 Dec 2020 01:03:12 +0000 (17:03 -0800)]
.travis.yml: fix call to load-from-root.

3 years ago.travis.yml: split load into two since travis_wait didn't work.
John Benediktsson [Mon, 14 Dec 2020 00:47:14 +0000 (16:47 -0800)]
.travis.yml: split load into two since travis_wait didn't work.

3 years ago.travis.yml: wait 20 min for load-all.
John Benediktsson [Mon, 14 Dec 2020 00:15:15 +0000 (16:15 -0800)]
.travis.yml: wait 20 min for load-all.

3 years agocompiler.cfg.gc-checks: need IN: for ABOUT:
John Benediktsson [Sun, 13 Dec 2020 23:39:57 +0000 (15:39 -0800)]
compiler.cfg.gc-checks: need IN: for ABOUT:

3 years agocompiler: fix PRIVATE docs.
John Benediktsson [Sun, 13 Dec 2020 22:59:56 +0000 (14:59 -0800)]
compiler: fix PRIVATE docs.

3 years agomath.combinatorics: IN: definitions not needed in docs.
John Benediktsson [Sun, 13 Dec 2020 22:56:45 +0000 (14:56 -0800)]
math.combinatorics: IN: definitions not needed in docs.

3 years ago.travis.yml: load-all and help-lint extra.
John Benediktsson [Sun, 13 Dec 2020 22:55:46 +0000 (14:55 -0800)]
.travis.yml: load-all and help-lint extra.

3 years agomath.matrices: adding matrix-map-index.
John Benediktsson [Sun, 13 Dec 2020 20:48:07 +0000 (12:48 -0800)]
math.matrices: adding matrix-map-index.

3 years agojson.reader: fix for rename.
John Benediktsson [Sun, 13 Dec 2020 20:10:31 +0000 (12:10 -0800)]
json.reader: fix for rename.

3 years agocalendar: omg.
John Benediktsson [Sun, 13 Dec 2020 19:40:23 +0000 (11:40 -0800)]
calendar: omg.

3 years agocalendar: fix timestamp>year-dates-gmt.
John Benediktsson [Sun, 13 Dec 2020 19:26:36 +0000 (11:26 -0800)]
calendar: fix timestamp>year-dates-gmt.

3 years agosequences: change surround to return type of ``seq2``.
John Benediktsson [Sun, 13 Dec 2020 19:08:38 +0000 (11:08 -0800)]
sequences: change surround to return type of ``seq2``.

This was the previous behavior, which follows the logic of returning
type of the "first sequence" in the output.

3 years agocalendar.format: fix for mutating words.
John Benediktsson [Sun, 13 Dec 2020 18:34:04 +0000 (10:34 -0800)]
calendar.format: fix for mutating words.

3 years agobase36: adding base36 encoder/decoder.
John Benediktsson [Sun, 13 Dec 2020 18:32:13 +0000 (10:32 -0800)]
base36: adding base36 encoder/decoder.

3 years agobase62: adding a base63 encoder/decoder.
John Benediktsson [Sun, 13 Dec 2020 18:22:58 +0000 (10:22 -0800)]
base62: adding a base63 encoder/decoder.

3 years agomisc/vim: generate syntax.
John Benediktsson [Sat, 12 Dec 2020 23:15:12 +0000 (15:15 -0800)]
misc/vim: generate syntax.

3 years agotools.cal: remove tests.
John Benediktsson [Sat, 12 Dec 2020 23:14:52 +0000 (15:14 -0800)]
tools.cal: remove tests.

3 years agosequences: improving cartesian-product to return type of original sequences.
John Benediktsson [Sat, 12 Dec 2020 17:38:33 +0000 (09:38 -0800)]
sequences: improving cartesian-product to return type of original sequences.

Adding cartesian-product-as for cases where you don't want that.

3 years agojson.reader: rename read-json-objects to read-json.
John Benediktsson [Fri, 11 Dec 2020 23:37:53 +0000 (15:37 -0800)]
json.reader: rename read-json-objects to read-json.