Commit Graph

4370 Commits (4b10899bc88b32b51af0eda5609ad6388fac6fc8)

Author SHA1 Message Date
John Benediktsson 737abe0f9a classes.error: adding a summary.txt. 2018-02-25 11:38:58 -08:00
John Benediktsson 6073e211ee io.streams.byte-array: implement stream-tell for byte-vector. 2018-02-21 15:05:20 -08:00
Doug Coleman c53892a128 bootstrap.syntax: Fix bootstrap. 2018-02-18 11:41:02 -06:00
Doug Coleman a2e8fb9050 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-02-18 11:29:09 -06:00
John Benediktsson edc1b3f65d classes.tuple: adding ?offset-of-slot that returns n/f. 2018-02-17 12:56:27 -08:00
John Benediktsson 42b37dcc8a fix some tests broken by previous commit. 2018-02-15 13:16:39 -08:00
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
John Benediktsson bd9676e152 core/basis/extra: use none?. 2018-02-14 11:56:31 -08:00
John Benediktsson 01f7f6b76c sequences: moving none? to core. 2018-02-14 11:23:03 -08:00
Cat Stevens 08b55b6a62 core/combinators docs: fix unclearness in case help 2018-02-14 07:41:22 -08:00
John Benediktsson a92d67fcb2 fix more typos in docs. 2018-02-12 16:43:08 -08:00
John Benediktsson 7d628b833d fix some typos in docs. 2018-02-12 16:22:49 -08:00
Doug Coleman 81d713f6e6 syntax: Add INITIALIZED-SYMBOL:, STARTUP-HOOK:, and SHUTDOWN-HOOK: 2018-01-28 01:34:51 -06:00
Doug Coleman 5d8b912216 Merge remote-tracking branch 'origin/master' into modern-harvey2 2018-01-27 09:43:21 -06:00
John Benediktsson 32584c5335 sorting: simplify l-next, r-next. 2018-01-22 11:45:54 -08:00
Alexander Iljin 34e9412e29 syntax-docs: improve descriptions for GENERIC: and GENERIC#: 2018-01-22 07:58:17 -08:00
Alexander Iljin abb3089a97 sequences-docs: fix a typo 2018-01-22 07:58:17 -08:00
John Benediktsson 5ea1e2efee vocabs: remove unnecessary generic stack effect. 2018-01-20 21:30:11 -08:00
John Benediktsson 1e0ae925f0 checksums: fix doctest for checksum-file. 2018-01-18 22:24:24 -08:00
Doug Coleman 3cbe0a1598 core: add ': 2018-01-02 22:32:23 -08:00
Doug Coleman daa7be5b7f core: fix bootstrap. 2018-01-02 22:31:08 -08:00
Doug Coleman 825891c7ef syntax: add ': for fried words 2017-12-29 11:09:53 -08:00
Doug Coleman 354f1cbd34 factor: vocab:word -> vocab::word 2017-12-29 00:43:25 -08:00
Doug Coleman bb07cd3d48 functors2: same -> inline 2017-12-28 18:51:21 -08:00
Doug Coleman efa9b2d01d functors2: rename SAME-FUNCTOR: to INLINE-FUNCTOR: 2017-12-28 17:28:58 -08:00
Doug Coleman f24a2e8ef7 present: add present for pointer 2017-12-28 17:15:51 -08:00
Doug Coleman d8a947b53d functors: workin on it 2017-12-27 20:58:00 -08:00
Doug Coleman d835fd8b82 present: add a ``M\\ callable present`` 2017-12-26 15:45:35 -08:00
Doug Coleman 38e93e9308 functors2: Redo FROM: for same-functors. Execute top-level code from functors, too. 2017-12-26 11:49:20 -08:00
Doug Coleman 3d83bb9f06 Merge remote-tracking branch 'local-master/master' into modern-harvey2 2017-12-24 14:59:58 -08:00
Doug Coleman 77492bb4b3 factor: fix tests that depended on LICENSE.txt never changing. 2017-12-17 21:45:10 -06:00
Doug Coleman 8a07105d9d factor: Fix spacing found by ``all-factor-paths [ ] rewrite-paths`` 2017-12-03 19:23:37 -06:00
Doug Coleman 8e8b5f59f5 factor: update sorting functor by adding a name type to functors2. 2017-12-02 19:05:25 -06:00
Doug Coleman 3964553ed5 functors: use in compiler. 2017-12-02 18:07:34 -06:00
Doug Coleman 56d437a1e7 alien.destructors: new functors. 2017-12-02 17:21:49 -06:00
Doug Coleman 7616f6e95d factor: add inlined quotations in stack effects 2017-12-02 16:38:11 -06:00
Doug Coleman 1950722e04 functors2: Fix IN: for same-functor 2017-12-02 10:12:04 -06:00
Doug Coleman 43e0ce4977 functors2: terrible duplication but about to reimplement it in terms of functors. 2017-12-02 08:05:27 -06:00
Doug Coleman ec05bf7be9 core: Add support for quotations inside stack-effects.
Disabled: Preconditions for functors are awkward to implement without creating new syntax. Instead, allow stack effects of the form ( x: [ 1 + ] -- y ) everywhere.
2017-11-25 18:44:37 -06:00
Doug Coleman 384ffc1025 specialized-arrays: Works as a new functor!! 2017-11-24 21:46:16 -06:00
Doug Coleman f8c54fd2bf core: Move new functors to core.
Also move enough to implement them in an ok style. I would prefer to use formatting in core, but it depends on calendar, etc.
2017-11-24 20:06:44 -06:00
Doug Coleman bc285f7072 core: Move multiline and interpolate to core.
caveats: peg.ebnf needs to find :> and let[ in "syntax" not locals anymore.
- You have to define a word ``IN: syntax`` before Factor picks up syntax changes
- You have to add a syntax word to core/bootstrap/syntax.factor
2017-11-24 19:12:04 -06:00
Doug Coleman 43628c8340 core: Move more things to core.
Tricky things:
f props>> == @ _ are not defined in syntax
2017-11-24 18:42:30 -06:00
Doug Coleman 085dbe716f core: Move hashtables.identity and hashtables.wrapped into core. 2017-11-24 16:46:47 -06:00
Doug Coleman b19b521b9c namespaces.extras: Add a new functors prototype.
IN: foo
FUNCTOR: foo goes into the vocab where it's declared

Instantiated ``FOO: bar`` go into ``foo:functors:foo:bar:92801082101``
2017-11-22 15:39:46 -06:00
Doug Coleman bf82be86b1 Merge branch 'master' into modern-harvey 2017-11-11 11:45:46 -06:00
Doug Coleman 0319ff7920 math: rename >fraction to fraction>parts 2017-10-27 20:21:48 -05:00
John Benediktsson 013adec055 source-files.errors: rename <definition-error> to new-source-file-error. 2017-10-25 10:45:46 -07:00
John Benediktsson 37794a326c sequences: rename setup-each to (each).
...to match (each-from), (2each), and (3each), etc.
2017-10-24 17:22:55 -07:00
John Benediktsson 26b7b20622 sequences: fix map-reduce to have ..a on the stack for the first call. 2017-10-23 18:01:15 -07:00
Doug Coleman 815591e10c factor: m: { a b } -> M\\ a b 2017-10-12 21:22:41 -05:00
Doug Coleman 4b35f2e0d9 factor: fix bootstrap. 2017-10-04 22:39:20 -05:00
Doug Coleman cada003d7f factor: Rename ``M\ array generic`` to ``m: { array generic }``.
The problem with M\ is that it has an arity of 1 where we need it to have arity 2. Also, for multimethods, the \ disables parsing of the array that follows, e.g. ``M\ { string string } multimethod-name`` parses as ``M\ {`` and leaves the rest unparsed. This is obviously wrong.

An alternative syntax that should be implement and looks ok is ``m{ array generic }``
2017-10-01 09:51:31 -05:00
Doug Coleman 577d4618ca core: keep nip cleanup. 2017-09-28 22:20:32 -05:00
Doug Coleman 6939b2ca5f io.errors: Add words to print to error-stream as easily as to
output-stream.
2017-09-16 16:50:04 -05:00
Doug Coleman 3c8da3722d sequences: Add assert-string=.
assert-sequence= prints strings as sequences of numbers, which is less
useful for writing unit tests.
2017-09-16 16:45:42 -05:00
Doug Coleman 953ddc566f factor: Fix test errors. 2017-09-16 08:58:20 -05:00
Doug Coleman 3dc8f5e039 core: Fix using list. 2017-09-16 06:32:01 -05:00
Doug Coleman 6dc30e953e io.pathnames: Add 3append-path. 2017-09-14 23:11:22 -05:00
Doug Coleman ff93f58304 Merge branch 'master' into modern-harvey 2017-09-11 17:59:01 -05:00
Alexander Iljin 504c9959a1 Update some copyright headers to follow the current convention
Had to look through the history to find years for some headers. Added
authors to some files as well.
2017-09-11 15:43:03 -07:00
Doug Coleman 200b5192ed factor: commit weekend work. 2017-09-11 16:37:47 -05:00
Doug Coleman 29708329ab core: Fix how \words are parsed. 2017-08-31 21:21:15 -05:00
Doug Coleman 6ef39d8b6e factor: Removing /* */ and fixing up using lists. 2017-08-31 21:21:14 -05:00
Doug Coleman b0858e48b8 core: \foo is literally just foo. To escape it, do ``\ foo`` instead.
Fix smalltalk too.
2017-08-31 21:21:14 -05:00
Doug Coleman fbaa172732 smalltalk: Allow SELECTOR: \foo: and ``M: foo \bar`` 2017-08-31 21:21:14 -05:00
Doug Coleman baa6af4831 factor: All RENAME: and FROM: and EXCLUDE: to have \foo as word names.
Grab bag of other cleanups. tests and docs parse!
2017-08-31 21:21:14 -05:00
Doug Coleman 3aa096e2e5 docs: Update docs. 2017-08-31 21:21:14 -05:00
Doug Coleman 22e59d7838 docs: Escaping a lot. 2017-08-31 21:21:14 -05:00
Doug Coleman 2114b7efc5 factor: ALIEN: to alien: 2017-08-31 21:21:13 -05:00
Doug Coleman 5507c2b676 factor: [let to let[, [| to |[ 2017-08-31 21:21:13 -05:00
Doug Coleman 88e772ef17 docs: postpone: \foo 2017-08-31 21:21:13 -05:00
Doug Coleman 5a119fa9f7 syntax: Allow postpone: \foo 2017-08-31 21:21:13 -05:00
Doug Coleman 7ca280aee6 factor: SYNTAX: \FOO: 2017-08-31 21:21:13 -05:00
Doug Coleman a2eb7b854d core: SYNTAX: should allow \FOO words. 2017-08-31 21:21:13 -05:00
Doug Coleman c436f6dbad factor: char: postpone: color: hexcolor: flexhexcolor: decimal: 2017-08-31 21:21:13 -05:00
Doug Coleman eb173e2caa factor: Add more character escapes. 2017-08-31 21:21:12 -05:00
Doug Coleman 7cf91e005d strings.parser: Add more escape codes. 2017-08-31 21:21:12 -05:00
Doug Coleman acfb3a8992 strings.parser: Add character escapes for :[{(.
You will need to bootstrap or change them to ``char: :`` then ``char: \:`` in strings.parser.
2017-08-31 21:21:12 -05:00
Alexander Iljin 599a21a8da sequences-docs: fix the delete-all $errors description 2017-08-27 13:06:09 +03:00
Doug Coleman 2920d2ee71 factor: Rename [curry] -> currier, remove some [foo] words.
The [foo] convention is not descriptive and looks like special syntax.
2017-08-06 00:20:35 -05:00
Björn Lindqvist 8675cb2c25 basis/,core/,extra/: more tags 2017-07-08 18:31:39 +02:00
Björn Lindqvist 1ca8276df4 basis/,core/,extra/: many new tags 2017-07-06 23:04:18 +02:00
Doug Coleman 01aab7c884 Factor: Rename <enum> to <enumerated> to not confuse with ENUM:s 2017-07-03 12:47:19 -07:00
Björn Lindqvist 1ed40f74f9 math.parser: fill argument must not be an empty byte-array 2017-06-28 11:18:40 +02:00
Björn Lindqvist 134a9fbcb4 VM: we can save the process by throwing a normal error here 2017-06-25 01:43:31 +02:00
Björn Lindqvist 483325d0f0 core/: bunch of more docs 2017-06-24 16:42:59 +02:00
Alexander Iljin 581489b64f sytax-docs: mention that numbers may contain commas 2017-06-21 12:36:39 +03:00
Alexander Iljin 106e1ea4f3 sequences-docs: add short help for the words longest and shortest 2017-06-21 12:35:47 +03:00
John Benediktsson 13e7ed3986 math.parser: allow 0B, 0O, and 0X number prefixes. 2017-06-15 15:53:01 -07:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman 27423b78aa classes.intersection: Fix typo in commented-out unit-test. 2017-06-04 20:03:02 -05:00
Doug Coleman 1708c8011f classes.singleton: Update another test. 2017-06-04 12:57:38 -05:00
Doug Coleman 06fd324379 singleton: Move definitions to top level in tests. 2017-06-04 10:41:26 -05:00
Doug Coleman acffb259f7 kernel: Fix the docs for curry/compose a bit. 2017-06-03 02:10:06 -05:00
Doug Coleman 7a703658f1 sequences: Remove start for real in favor of subseq-start.
Update a usage of start that was masked by the ALIAS:

Compatibility/migration is a .99 feature.
2017-06-02 17:41:10 -05:00
Doug Coleman 32710df620 core/basis: Rename tuples kernel:curry -> curried, kernel:compose -> composed.
Also rename the stack-checker curried -> curried-effect, composed -> composed-effect.
2017-06-02 17:39:20 -05:00
Doug Coleman 1dc65c13e7 words: Remove dummy ``word`` word and comment. Totally bogus. 2017-06-02 16:58:14 -05: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 88bff3a034 sequences: Add start as an alias for subseq-start, start* aliasing subseq-start-from. 2017-06-01 14:55:15 -05:00