Commit Graph

520 Commits (0cfc48479eeba37185b3ec187277ef6bf413eb8f)

Author SHA1 Message Date
John Benediktsson 81caec378d classes.tuple: use integer>fixnum in tuple-hashcode. 2019-01-10 21:39:24 -08:00
Doug Coleman 4e9d383fe5 docs: Fix help-lint-all mistakes. 2018-07-07 01:13:19 -05: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
John Benediktsson 737abe0f9a classes.error: adding a summary.txt. 2018-02-25 11:38:58 -08:00
John Benediktsson edc1b3f65d classes.tuple: adding ?offset-of-slot that returns n/f. 2018-02-17 12:56:27 -08:00
John Benediktsson bd9676e152 core/basis/extra: use none?. 2018-02-14 11:56:31 -08:00
John Benediktsson a92d67fcb2 fix more typos in docs. 2018-02-12 16:43:08 -08: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 483325d0f0 core/: bunch of more docs 2017-06-24 16:42:59 +02: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 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
Doug Coleman e93d8f82bc core: Add TH{ for making assoc tuples.
See #1449.
https://github.com/factor/factor/issues/1449
2017-05-30 20:14:29 -05:00
John Benediktsson 3f04f7b013 classes.maybe: fix help-lint for docs.
Right now the examples must have stack effect ( -- ).  Some future
version might have an output stack assertion, but for now use
prettyprint to check result.
2017-03-17 13:21:36 -07:00
Alexander Iljin b1a24358f3 classes.maybe-docs: create some documentation for the maybe vocab
Integrate the pointers to the new article into existing help system,
primarily by looking for the uses of the "unions" article.
2017-03-17 08:22:18 -07:00
Alexander Iljin bad5408c76 *-docs: fix a typo in the word parametErized 2017-03-17 08:22:18 -07:00
Björn Lindqvist 350de8f171 classes.mixin,classes.union: moves the check-self-reference test
Should make it so you can't define self-referencing mixins, just like
you can't define self-referencing unions.
2017-01-03 06:10:12 +01:00
Björn Lindqvist 9752d2fbf5 classes.mixin.tests: fix tc not to break when forget-tests? is on 2017-01-03 04:15:57 +01:00
Björn Lindqvist 8f28fb2587 classes.mixin: fix type checking in add-mixin-instance
One test in classes.mixin.tests intermittently breaks otherwise.
2016-12-30 16:24:34 +01:00
Björn Lindqvist a808ade3c1 classes.mixin: better name for the type checking error 2016-12-30 16:02:55 +01:00
Björn Lindqvist 7abe91732f classes.*: new words contained-classes and all-contained-classes
it is to generalize the logic used for checking if union classes
self-references
2016-12-06 09:00:01 +01:00
Björn Lindqvist 0142d0b078 basis/,extra/: using parse-array-def in a bunch of places 2016-12-03 13:23:24 +01:00
Björn Lindqvist fe0f2902a0 classes.mixin: add-mixin-instance doesn't need to be generic 2016-11-28 02:04:28 +01:00
John Benediktsson a7814b9358 classes: unset defining-class in define-class. 2016-04-13 16:41:42 -07:00
John Benediktsson 331483ab98 classes.algebra: removing valid-classoid? (enforced in constructors). 2016-04-13 14:29:24 -07:00
John Benediktsson ed22ef8ee7 classes.maybe: this restriction isn't necessary anymore. 2016-04-13 14:20:00 -07:00
Doug Coleman c133c16377 core: Trim using lists from -tests and clean up a few irregularities. 2016-03-30 18:43:41 -07:00
John Benediktsson 71ef8a22c2 disambiguate namespaces:set and sets:set. 2016-03-29 17:14:42 -07:00
Doug Coleman 20aadd5688 core: rename some double paren words. 2016-03-25 03:13:27 -07:00
Björn Lindqvist 579875821b VM: removes the OBJ-ERROR special object in favor of a constant
The special object contained the string "kernel-error" which were used
to tag VM errors. But it is simplier and removes a little complexity to
just tag them with a fixnum constant.
2016-03-22 17:52:19 +01:00
John Benediktsson 9cc73c9492 graphs: move to core and simplify.
1. remove add-vertex* and remove-vertex* that contradicted the documentation.
2. graphs use hash-sets of edges instead of hashtables of {edge,edge} pairs.
3. make graphs:closure work like classes:closure, use in classes.
2016-03-21 10:20:38 -07:00
Björn Lindqvist 85c3ccbb98 slots: add initial value for integer-array-capacity, fixes part of #1571 2016-03-21 18:10:39 +01:00
Björn Lindqvist 6362a4ad5f compiler.units: changes dynamic vars so that they are stack parameters instead 2016-03-09 23:24:42 +01:00
Björn Lindqvist 81ad3e21cb tuple-arrays: initial-values can be reused here to create the tuple
array sequence
2015-10-10 23:58:04 +02:00
John Benediktsson adbd379241 classes.tuple: fix stack effect, didn't mean to commit change. 2015-09-24 09:38:16 -07:00
John Benediktsson 7583ffc2c9 classes.tuple: use class-of in tuple>array. 2015-09-24 07:58:02 -07:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
Doug Coleman de4e42b6ca classes.parser: add a create-class word. 2015-08-23 22:40:56 -07:00
John Benediktsson 9dcca84c27 classes.tuple: a better error if creating a tuple from too many values. 2015-08-15 19:39:39 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman b1606f3d0a classes.error: It was in the other patch but not this one... 2015-08-12 19:40:25 -07:00
Doug Coleman 02008979d9 factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon. 2015-08-12 15:26:18 -05: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 28dcd0667a factor: rename set to unordered-set. 2015-08-12 10:54:19 -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
John Benediktsson 5eec781b40 use ``if*`` instead of ``dup [ ] [ drop ] if``. 2015-07-20 22:24:30 -07:00
Doug Coleman 2f6548d6d2 factor: fix breakage with word renamings. 2015-07-20 05:51:16 -07:00
Doug Coleman eca8b7e49c core: fix docs 2015-07-20 01:01:31 -07:00