John Benediktsson
255b4fc823
cpu.x86: fix article title help-lint.
2015-07-21 17:55:52 -07:00
Doug Coleman
97d29b8f57
multiline: disable test that defines a weird syntax word.
2015-07-21 17:33:14 -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
c1a330ac7a
io.encodings.iso2022: use $ instead of making ESC a parsing word.
2015-07-21 17:33:14 -07:00
Björn Lindqvist
e41aef9a50
cpu.x86: use push and pop when emitting %prologue and %epilogue
...
push/pop REG has the same effect as sub/add rsp, 8 so use them instead
when applicable to generate a little shorter code
2015-07-21 16:22:33 -07:00
Doug Coleman
cf0cb4aedc
nested-comments: remove this vocab. we have /* */ which is good enough for now.
...
broken case:
(*
: print-broken ( -- ) "*)" ;
*)
not worth fixing, please don't bring this back :)
its functionality will be replaced soon.
2015-07-21 12:07:53 -07:00
Doug Coleman
da5564bd3f
multiline: remove unused DELIMITED: word.
2015-07-21 12:02:15 -07:00
John Benediktsson
9ec74563ba
compiler.cfg: use "f [ or ] reduce" instead of "map [ ] any?"
2015-07-21 09:54:44 -07:00
Björn Lindqvist
d24733e703
compiler.cfg.build-stack-frame: refactoring which removes the
...
frame-required? variable
2015-07-21 13:40:50 +02:00
Björn Lindqvist
80ea6b8997
compiler.*: fix the tests that broke because i removed the stack-frame variable
2015-07-21 13:40:49 +02:00
Björn Lindqvist
eba939c0f2
compiler.cfg.stacks.map: this vocab is subsumed by
...
compiler.cfg.stacks.padding which works much better
2015-07-21 13:36:11 +02:00
Björn Lindqvist
bc8525bf5b
compiler.cfg.build-stack-frame: the frame-required? variable needs to be
...
reset so that stack frames aren't included in words that doesn't need them
2015-07-21 13:35:22 +02:00
Björn Lindqvist
b5333ec7aa
compiler.cfg.stack-frame: using cfg get stack-frame>> instead of the
...
stack-frame variable that pointed to the same instance
2015-07-21 13:35:22 +02:00
John Benediktsson
5eec781b40
use ``if*`` instead of ``dup [ ] [ drop ] if``.
2015-07-20 22:24:30 -07:00
John Benediktsson
7327b8bdd4
vocabs.loader: make require-all throw restarts.
...
We only want to catch the restarts in mason, so make a special
load-no-restarts that will catch the failures and print them out
the same way it worked before.
2015-07-20 17:35:22 -07:00
John Benediktsson
507dac7599
locals.parser: don't clone the manifest, just pop used words.
...
It seems the manifest gets cloned on restarts, which makes unuse-words
not work since it just checks ``eq?``. If we pop the last qualified
vocabs, then everything works.
2015-07-20 17:35:22 -07:00
John Benediktsson
529a57bbb4
Revert "hints: add hints to index."
...
This reverts commit 96ce04755a
.
2015-07-20 17:35:22 -07:00
John Benediktsson
8a4a86db64
vocabs.prettyprint: lookup syntax vocab only once in pprint-using.
2015-07-20 17:35:22 -07:00
Doug Coleman
bcc78ab220
basis: whitespace.
2015-07-20 17:13:52 -07:00
John Benediktsson
d5ebb43905
wrap: some cleanup.
2015-07-20 12:25:49 -07:00
John Benediktsson
46fbfe3ff0
wrap: use infimum-by instead of min-by.
2015-07-20 12:25:49 -07:00
John Benediktsson
3ea9f09f6a
fix some sets:members.
2015-07-20 09:32:31 -07:00
Doug Coleman
329aed2366
factor: fix renaming bugs
2015-07-20 07:54:26 -07:00
Doug Coleman
2f6548d6d2
factor: fix breakage with word renamings.
2015-07-20 05:51:16 -07:00
Doug Coleman
2fd752536f
wrap.words: fix docs
2015-07-20 01:31:10 -07:00
Doug Coleman
80601662a3
bootstrap.image: rename image -> bootstrapping-image
2015-07-20 01:26:44 -07:00
Doug Coleman
dfc5be9e43
ui.gadgetes.grids: cell -> grid-cell. it's private and hardly used and loaded by default, let's not confuse the tools with the layouts:cell.
2015-07-20 01:23:00 -07:00
Doug Coleman
af90d77fc2
wrap.words: rename wrap.words:word to wrapping-word. this ``wrapping-word`` is loaded by default and now this trivial vocabulary won't cause a naming conflict with the builtin ``word`` and one of the most used symbols and concepts in the entire language.
2015-07-20 01:15:48 -07:00
Doug Coleman
eca8b7e49c
core: fix docs
2015-07-20 01:01:31 -07:00
Doug Coleman
191d00208d
vm: rename vm:cell to cell_t. it's just a typedef.....
2015-07-20 01:01:01 -07:00
Doug Coleman
e4c39bcf3c
factor: superclass -> superclass-of, superclasses -> superclasses-of
2015-07-20 00:46:33 -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
fbbd09f3c5
factor: system:image -> image-path, like vm-path. image is all over the place png, jpg etc
2015-07-20 00:17:09 -07:00
Doug Coleman
4561bd88a3
html.streams: rename image-path to icon-path
2015-07-20 00:10:56 -07:00
Doug Coleman
618330b31e
factor: rename system:vm -> vm-path to differentiate it from vm:vm (which is a STRUCT:)
2015-07-20 00:10:29 -07:00
Doug Coleman
1e22e9b814
factor: all FUNCTION: rename complete
2015-07-19 22:55:24 -07:00
Doug Coleman
b3e8ecf738
factor: more function messups
2015-07-19 20:09:21 -07:00
Doug Coleman
6f6007570a
factor: Fix rename issues.
2015-07-19 19:56:16 -07:00
John Benediktsson
a08926653d
locals.parser: fix bug where auto-use restarts weren't working properly.
2015-07-19 19:18:47 -07:00
John Benediktsson
b5a671cd88
peg: replace uses of digits>integer with string>number.
2015-07-19 19:18:47 -07:00
Doug Coleman
1b228c7e9c
tools.deploy.windows: fix using.
2015-07-19 17:53:09 -07:00
Doug Coleman
e2d80fee5f
db.postgresql.ffi: fix
2015-07-19 17:45:52 -07:00
Doug Coleman
af553861e0
factor: fix a few spots where FUNCTION: was malformed
2015-07-19 17:43:09 -07:00
Doug Coleman
9ddae2534d
tools.deploy.windows: fix circularity, for some reason not exposed before
...
this?
2015-07-19 17:37:51 -07:00
Doug Coleman
6ce59b755f
windows.user32: fix some more sloppiness
2015-07-19 17:24:17 -07:00
Doug Coleman
07b8ba1ed5
windows.user32: forgot one
2015-07-19 17:22:57 -07:00
John Benediktsson
96ce04755a
hints: add hints to index.
2015-07-19 17:20:36 -07:00
Doug Coleman
8bda0caff1
factor: FUNCTION: rename by hand...
2015-07-19 17:09:01 -07:00
John Benediktsson
89e3cc511e
math: moving >fraction to math.
2015-07-19 16:57:45 -07:00
Doug Coleman
5f8426cfbe
factor: rename files that are not loadable on mac, too
2015-07-19 16:55:36 -07:00
Doug Coleman
865510670a
windows.ddk.setupapi: fix function syntax
2015-07-19 16:55:27 -07:00
Doug Coleman
0176591527
factor: actual patch to remove ; from all c/fortran functions
2015-07-19 16:25:30 -07:00
Doug Coleman
14ba179254
factor: change FUNCTION: and similar to not have trailing ;
2015-07-19 16:24:47 -07:00
Doug Coleman
cdef03f182
openssl.libssl: Fix FUNCTION: error exposed after parser change.
2015-07-19 15:46:57 -07:00
John Benediktsson
c5e4bb4980
alien.parser: change scan-c-args to always use ";" as end-marker in preparation for maybe removing it later.
2015-07-19 15:08:56 -07:00
John Benediktsson
d18fe872f2
help.markup: simplify $example slightly.
2015-07-19 15:07:02 -07:00
John Benediktsson
2c4ed220b5
ui.gadgets.tabbed: use named color constant.
2015-07-19 12:49:34 -07:00
John Benediktsson
c25fb5f55e
update some more MACRO: effects.
2015-07-19 11:42:46 -07:00
John Benediktsson
aa4ed0b4f4
macros: fix bug, needed this fry actually.
2015-07-19 11:38:02 -07:00
John Benediktsson
86c81bedfb
macros: check macro effect is real-macro-effect.
2015-07-19 11:16:19 -07:00
Doug Coleman
2c257f399c
factor: Rename MACRO: and MACRO: to have quot as the output in stack effects.
2015-07-18 22:16:11 -07:00
Doug Coleman
9fb130791b
factor: trim more whitespace from #! comments
2015-07-18 20:36:42 -07:00
Doug Coleman
4ec2311406
factor: Trim whitespace after ! comments and a few USING: lines that got skipped before.
2015-07-18 20:14:22 -07:00
John Benediktsson
035ccf7984
ui.gadgets.grid-lines: fix using.
2015-07-18 18:30:16 -07:00
John Benediktsson
72e19fe79a
ui.gadgets.grid-lines: fix tests.
2015-07-18 18:28:00 -07:00
John Benediktsson
8931517401
opengl: change rect-vertices to draw inside.
2015-07-18 15:52:20 -07:00
John Benediktsson
58d84c6c98
opengl: fix drawing artifact around rectangles.
2015-07-18 15:08:48 -07:00
John Benediktsson
f9cb9765ee
ui.gadgets.grid-lines: fix rough edges on right and bottom.
2015-07-18 14:56:57 -07:00
John Benediktsson
44ae7264a5
xml: add some $quotation help.
2015-07-18 10:57:45 -07:00
John Benediktsson
66f6416d34
ui: add some $quotation help.
2015-07-18 10:57:37 -07:00
Doug Coleman
6415684f8d
word hashcodes: Don't unsafely set the hashcode for a word to be a bignum. Revert foldable, type declaration for word hashcode*.
2015-07-18 08:55:38 -07:00
John Benediktsson
ac0828718f
prettyprint: keep the cleanup from the last commit without the removal of { soft hard }.
2015-07-17 23:05:19 -07:00
John Benediktsson
2984496e04
Revert "prettyprint: remove { soft hard } line-break types (only ever used hard), cleanup."
...
This reverts commit cf0cec0ecd
.
2015-07-17 23:02:54 -07:00
John Benediktsson
e2fc9f003a
prettyprint: cleanup using.
2015-07-17 16:42:20 -07:00
John Benediktsson
cf0cec0ecd
prettyprint: remove { soft hard } line-break types (only ever used hard), cleanup.
2015-07-17 16:05:38 -07:00
John Benediktsson
39055423ce
splitting.monotonic: a bit faster.
2015-07-17 14:23:50 -07:00
John Benediktsson
327a4ba5af
splitting.monotonic: cleanup and simplify monotonic-split.
2015-07-17 12:14:33 -07:00
John Benediktsson
9fad4187f3
sequences: adding a subseq-unsafe that doesn't check slice bounds.
2015-07-17 12:14:33 -07:00
Doug Coleman
16837c56ee
macros: Fix docs to show macros output a quot.
2015-07-17 01:54:35 -07:00
John Benediktsson
59676ce68a
splitting.monotonic: return array from empty trends.
2015-07-16 17:23:24 -07:00
John Benediktsson
e2703b5720
splitting.monotonic: faster and simpler monotonic-slice.
2015-07-16 17:20:41 -07:00
John Benediktsson
94cddbe927
sequences: integer slots in slice, don't store reason in slice-error.
2015-07-16 15:35:03 -07:00
John Benediktsson
242d18d95e
locals: use a test tuple instead of a slice.
2015-07-16 15:34:36 -07:00
John Benediktsson
37f7fa95ca
grouping: integer slots in circular-slice.
2015-07-16 15:32:41 -07:00
John Benediktsson
5d6632514a
io.sockets: make host-name a hook and throw correct errors.
2015-07-16 13:15:14 -07:00
John Benediktsson
5825099745
bootstrap.image: minor cleanup.
2015-07-16 11:09:17 -07:00
John Benediktsson
dc9a501040
bootstrap.image.upload: use with-resource-directory.
2015-07-16 10:39:33 -07:00
John Benediktsson
04c5f5bfce
base64: separate read-into-ignoring.
2015-07-16 08:31:48 -07:00
John Benediktsson
9204d3c44d
base64: simplify (encode-base64).
2015-07-16 07:35:51 -07:00
John Benediktsson
eea048dae2
base64: big speedup and cleanup.
2015-07-15 22:34:15 -07:00
Doug Coleman
3d55e79a2c
base64: include alphabet-inverse in compilation unit
2015-07-15 20:17:52 -07:00
Doug Coleman
1fc2e659e8
base64: Fix load error. $[ and ${ run at parse-time currently, so they can't call words that haven't been compiled yet.
2015-07-15 20:03:26 -07:00
John Benediktsson
027a71d98e
base64: use literals to compute the inverse array instead of hardcoding.
2015-07-15 18:19:59 -07:00
John Benediktsson
4cf54117ee
checksums.sha: benchmark.sha1 is 15% faster.
2015-07-15 16:54:59 -07:00
John Benediktsson
8a3c5c2634
Fix some tests broken by optimized? rename.
2015-07-15 11:47:03 -07:00
John Benediktsson
4c2c8f133f
vm: rename some primitives, and some cleanup.
...
* quot-compiled? => quotation-compiled?
* optimized? => word-optimized?
2015-07-15 11:13:52 -07:00
John Benediktsson
86639b9df0
io.encodings.ascii: make sure encode-string gets a string.
2015-07-14 22:18:12 -07:00
John Benediktsson
284c5ac4e3
opengl.textures: fix merge whoops.
2015-07-14 17:54:14 -07:00
John Benediktsson
09f4c7941f
pack: whoops, need to dup result.
2015-07-14 17:50:26 -07:00
John Benediktsson
d44ca77cff
opengl.textures: use cum-sum0 from math.statistics.
2015-07-14 17:49:12 -07:00
John Benediktsson
20ff03f5c0
pack: use cum-sum0 from math.statistics.
2015-07-14 17:49:04 -07:00
John Benediktsson
6e9dfc86c3
math.primes: commas look better.
2015-07-14 17:35:52 -07:00
John Benediktsson
04c0fdc39e
images: adding an "each-pixel" that iterates over pixels by row.
2015-07-14 17:19:04 -07:00
John Benediktsson
f8bf42bce8
lists: adding deeplist>array.
2015-07-14 16:35:59 -07:00
John Benediktsson
c89cdc4c67
math.matrices.elimination: avoid double length call.
2015-07-14 15:59:24 -07:00
John Benediktsson
b3ccdec660
help.markup: adding $sequence for describing sequence values.
2015-07-14 15:55:18 -07:00
John Benediktsson
ed98332263
ui.gadgets.buttons: simplify.
2015-07-14 15:43:58 -07:00
John Benediktsson
1431c33f1f
ui.gadgets.status-bar: use color constants.
2015-07-14 15:29:25 -07:00
John Benediktsson
098a07ed59
ui.gadgets.buttons: add button quot effect.
2015-07-14 15:29:06 -07:00
Björn Lindqvist
b9b75c272b
VM: let's merge (save-image) and (save-image-and-exit) into one 3
...
arg (save-image). it's good not to have to many similar primitives
2015-07-12 22:36:59 +02:00
John Benediktsson
dce364faa2
ui.gadgets.labels: trigger relayout when string changes.
2015-07-10 14:06:53 -07:00
John Benediktsson
df50480878
prettyprint.stylesheet: use assoc-union! and set-at when possible.
2015-07-10 12:37:31 -07:00
Doug Coleman
7780a48c83
shuffle: Simpler definition imo.
2015-07-09 14:45:41 -07:00
John Benediktsson
8dd67e0741
tools.scaffold: use vocabs:check-vocab-name.
2015-07-09 11:02:09 -07:00
John Benediktsson
afb055470a
debugger: give bad-vocab-name a better summary.
2015-07-09 11:00:40 -07:00
John Benediktsson
7d50ab1937
tools.scaffold: check vocab name in scaffold-vocab.
2015-07-09 10:51:44 -07:00
John Benediktsson
58a07c0c36
system-info.macosx: adding OS X 10.11 "El Capitan".
2015-07-09 10:39:34 -07:00
John Benediktsson
c9561e4f28
locals.parser: fix tests for now so we get clean builds.
2015-07-08 11:27:20 -07:00
Doug Coleman
128c262429
compiler.cfg.value-numbering: tests need to have this loaded.
2015-07-06 22:44:36 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
0124e630f0
alien.parser: add a couple of commas
2015-07-02 17:29:12 -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
431ddcaf9f
unix.ffi: Fix syntax for FUNCTION:
2015-07-02 17:27:18 -07:00
Doug Coleman
9bbba4dca8
math.floats.env: Make sure answers are array. So much metapgramming in these unit tests.
2015-07-02 16:05:42 -07:00
Doug Coleman
a35d43303c
multiline: trailing space is necessary. new parser handles this case now.
2015-07-02 15:29:41 -07:00
Doug Coleman
40892c0302
tests: prefer ${ } instead of 1array
2015-07-02 14:56:14 -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
e3cb325040
factor: clean up whitespace in -docs files
2015-07-02 10:31:22 -07:00
John Benediktsson
2ff04469af
editors.atom: make it work better with Mac OS X.
2015-06-30 17:37:26 -07:00
Doug Coleman
edb61c9b24
math.combinatorics: private docs again. oops
2015-06-30 10:25:21 -07:00
Doug Coleman
aadb5d0b70
help.syntax: Don't throw a sequence error when article is defined poorly.
2015-06-30 09:46:36 -07:00
Doug Coleman
380790f624
math.complex: Fix PRIVATE>
...
There's an IN: in the middle of a PRIVATE> and that breaks things.
2015-06-30 08:58:12 -07:00
Doug Coleman
69ee8b9190
core, basis: Don't use the IN: foo.private feature and undocument it.
...
It only works well when you are loading code dynamically.
2015-06-30 08:51:07 -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
Doug Coleman
2c08e9a089
vim: Add tabbed window option.
2015-06-29 10:35:36 -07:00
Björn Lindqvist
95fa3eba19
compiler.tree.propagation.known-words: better way to assign the
...
"outputs" to the mod words + some more tests
2015-06-27 16:14:58 +02:00
Björn Lindqvist
35b04f8ec1
VM: fixes a bug with the handling of 0 bignums, and declares bignum/mod
...
to maybe output fixnums
2015-06-27 16:14:58 +02:00
Björn Lindqvist
0d02ff8e40
compiler.tree.propagation.*: new and fixed tests for the new propagation
...
behaviour for mod
2015-06-27 16:14:58 +02:00
Björn Lindqvist
2f835d3666
compiler.tree.propagation.*: implements downgrading to fixnum for the
...
mod word, maybe a first step in solving #224
factor_vm::primitive_bignum_mod is changed so that it outputs a fixnum
if the value is small enough. Then the compiler can take advantage of
knowing that expressions like [ >bignum 10 mod ] always result in a
fixnum [-9,9] and inline more arithmetic.
2015-06-27 16:14:58 +02:00
Björn Lindqvist
72fe466ac9
compiler.tree.propagation.known-words: more precise output class
...
assignment for all mod words
The compiler can better optimize a quotation like [ 20 fixnum-mod 55 + ]
if it knows fixnum-mod outputs a fixnum.
2015-06-27 16:14:57 +02:00
Doug Coleman
44e8e7b344
primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.
...
Use PRIMITIVE: in core/ and basis/
2015-06-25 18:02:03 -07:00
Doug Coleman
09e4606791
compiler.cfg.debugger: alien-invoke insn nodes were printing double quotes in the dot file output. If you would pprint a string, instead print that string so the double quotes are not present in the output.
2015-06-24 18:46:39 -07:00
Doug Coleman
9d2c641a99
io.standard-paths: On mac when you launch Factor from the doc it doesn't have the login shell PATH variable for paths such as /usr/local/bin for homebrew. Add a word that finds things in this path as well.
...
Note that launching a binary found this way needs the full path, as the PATH variable itself is not modified and the binary will still not be in PATH if it wasnt before.
2015-06-24 18:44:09 -07:00
John Benediktsson
8325837b84
locals.parser: fix help-lint warning.
2015-06-22 18:42:16 -07:00
John Benediktsson
e69d0a7b45
locals.parser: only need to clone manifest.
2015-06-22 15:59:15 -07:00
John Benediktsson
fc467b72a5
functors: make sure to unuse functor-words, some cleanup.
2015-06-22 15:58:59 -07:00
Björn Lindqvist
d32b9f9c90
locals.parser: docs for with-lambda-scope and some random doc additions
2015-06-22 11:15:48 +02:00
Björn Lindqvist
976961bfbd
locals.parser: new word with-lambda-scope to handle lexical variables
...
better, fixes #1338
By cloning the relevant parts of the manifest, you ensure that the
quotation with-lambda-scope runs can't "leak" local names in case of
restartable errors.
2015-06-22 11:15:47 +02:00