Commit Graph

757 Commits (258b9590a287fff30cb20bf1fdebc6cb89599a23)

Author SHA1 Message Date
Slava Pestov 258b9590a2 tools.deploy: fix unit test 2011-10-29 17:15:49 -07:00
Doug Coleman dc0a921866 Remove the lexer-factory because nothing uses it. Update usages. 2011-10-29 01:11:19 -07:00
Doug Coleman 763d9a3f7d Missed yet more renames 2011-10-24 17:00:09 -07:00
Doug Coleman f9257959fd Rename class to class-of 2011-10-24 06:47:42 -05:00
Doug Coleman 26872ffe4d Rename vocab to lookup-vocab 2011-10-24 06:42:54 -05:00
Doug Coleman 2ecd513130 Factor out ``no-roots no-prefixes'' into its own word. Add load-root, load-from-root, vocabs-in-root and implement load in terms of load-from-root.
Add error checking for append-vocab-dir and (child-vocabs) in case someone tries to pass them the wrong parameters.
Rename: vocab-dir+ to append-vocab-dir
Document load-from-root and load-root
2011-10-23 19:59:01 -05:00
Doug Coleman 441a8b8926 Checked in some code on accident. 2011-10-21 15:34:44 -05:00
John Benediktsson 5a943b32c4 Remove stack effects from HELP: declarations. 2011-10-20 19:36:11 -07:00
Doug Coleman df3cf77e59 Fix tools.annotations tests 2011-10-19 00:57:06 -07:00
Joe Groff 300a0256c8 new vocab tools.annotations.assertions
Annotates unsafe words with assertions that their inputs and outputs are valid. Provide annotations for stream-read(-partial)-unsafe and (set-)nth-unsafe to start with.
2011-10-18 15:13:34 -07:00
Joe Groff c850722cbb tools.annotations: send watch to error-stream 2011-10-18 15:13:34 -07:00
John Benediktsson 80e1c8e3f2 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
Doug Coleman f21fee3b73 Rename complete-effect to scan-effect 2011-10-17 10:25:27 -07:00
Doug Coleman db1d499a6f Fix typo in tools.deploy.windows.ico 2011-10-16 23:06:11 -07:00
John Benediktsson 81714b8dc3 More lint cleanups. 2011-10-16 19:33:16 -07:00
John Benediktsson 6f1c44b46d Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson 312704ae68 math.parser: cleanup uses of 16/8/2 >base/base>. 2011-10-14 10:09:12 -07:00
Joe Groff e200656ce4 tools.test.fuzz tests: missing using 2011-10-10 18:03:52 -07:00
Joe Groff b5fc65707d new module tools.test.fuzz: quickcheck-style probabilistic testing, based on Andrew Pennebaker's factcheck vocab 2011-10-10 12:23:23 -07:00
Joe Groff 5a21742f74 tools.test: move fake-unit-test utility from test suite to module 2011-10-10 12:23:23 -07:00
Doug Coleman 685fc2f86f Rename method -> lookup-method in three places. 2011-10-04 20:37:23 -07:00
Doug Coleman 181f11faa8 Make M\ throw an error upon lookup failure. Change method -> ?lookup-method, lookup-method is the throwing version of ?lookup-method. Fixes #229. 2011-10-03 15:49:49 -07:00
Slava Pestov 6bd956670b tools.continuations: >c and c> are gone 2011-10-03 00:37:48 -07:00
Slava Pestov c68e2308a8 Display a system-alert for callback errors in the UI; also for thread errors in deployed apps; fixes #92, fixes #95 2011-10-03 00:24:37 -07:00
Slava Pestov dabbe35bd9 concurrency.mailboxes: linked-thread's error reporting should still work even when debugger.threads is not loaded. This addresses part of #95 2011-10-03 00:24:37 -07:00
Doug Coleman 76580da5d5 Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson 4f42c72012 specialized-arrays: performed some cleanup.
Specifically,
    •   Created >c-array to be replacement for >T-array.
    •   Created cast-array to be generic replacement for all T-array-cast words.
    •   Created c-array@ to be generic replacement for T-array@ words.
    •   Replaced usages of <T-array> with T <c-array>
    •   Replaced usages of <direct-T-array> with T <c-direct-array>
    •   Replaced usages of >T-array with T >c-array
    •   Replaced usages of T-array-cast with T cast-array
    •   Replaced usages of malloc-T-array with T malloc-array.
    •   Removed malloc-T-array.
    •   Removed T-array-cast.
    •   Removed T-array@.
    •   Removed >T-array.

I also added (but didn't change any code to use):
    •   T c-array-type, returns T-array
    •   T c-array?, returns T-array?
    •   c-array{ T ... }, returns T-array{ ... }

Bootstraps just find on Mac OS X.  Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
John Benediktsson baac978767 Removing "to:" syntax from values.
Squashed commit of the following:

commit 18fef6bfa59f71dcb63b439f631c735848a9bbbb
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Mon Sep 26 11:02:26 2011 -0700

    vocabs.metadata: revert mistaken change.

commit 496b103b54034ea953882a039c08847d0eda0bb4
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Sun Sep 25 19:03:54 2011 -0700

    values: Removing "to:" syntax.
2011-09-26 11:08:26 -07:00
Doug Coleman 5d998589c2 Decouple adding the coverage annotations from setting the flag in them
Add a test-coverage word for reporting on only the unit-tests for a vocabulary
2011-09-25 19:32:36 -07:00
John Benediktsson bbeccadbbe tools.crossref: now 50% faster. 2011-09-25 11:40:55 -07:00
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
Doug Coleman bf2a96e9e0 Remove Windows CE from core/ basis/ and build-support/
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.
2011-09-18 23:19:06 -05:00
John Benediktsson c5601cd86e tools.completion: add test that empty completions preserve order. 2011-09-17 09:00:43 -07:00
Slava Pestov 6e6c42179a tools.errors: fix help lint 2011-09-13 23:40:48 -07:00
Slava Pestov 2cf574945a tools.deploy.shaker: update for alien.libraries changes 2011-09-13 20:19:11 -07:00
John Benediktsson 36da386816 tools.completion: undo private change, and add tests. 2011-09-13 09:22:57 -07:00
John Benediktsson 5e496e846b tools.completion: speed up apropos by 35%. Fixes #101. 2011-09-13 09:13:02 -07:00
Doug Coleman dcbc7ef0a7 Fix shaker 2011-09-07 00:34:23 -07:00
Doug Coleman 5fce2d0f27 Make "quiet" true by default. Disable quiet mode for listener, bootstrap, and deploy tool.
Move "quiet" to parser-quiet? in parser.notes. Change a few places where quiet was handle wrong.
2011-09-06 17:58:12 -07:00
Slava Pestov ed9cf9e4fd Move some primitives from memory and memory.private to tools.memory.private, add data-heap and code-heap words that wrap the struct for you 2011-09-05 16:47:29 -07:00
John Benediktsson b13eb201bd tools.crossref: adding stack effect. 2011-09-03 16:39:04 -07:00
Slava Pestov a87211ff29 tools.scaffold: remove unused ERROR: 2011-09-01 22:31:45 -07:00
Doug Coleman 3f0e1ce056 Add scaffold-factor-roots word to tools.scaffold 2011-08-29 01:03:41 -05:00
John Benediktsson 1f830cfc2a Merge remote-tracking branch 'erg/master' 2011-08-27 19:00:27 -07:00
Doug Coleman 05de404801 Make coverage. use each-word, only put coverage on non-primitive/symbol words 2011-08-27 16:12:41 -05:00
Joe Groff 9040ee37e0 Merge remote-tracking branch 'Blei/gtk-image-loader'
Conflicts:
	basis/alien/enums/enums-tests.factor
	basis/alien/enums/enums.factor
	basis/alien/parser/parser.factor
	basis/gdk/pixbuf/ffi/ffi.factor
	basis/glib/ffi/ffi.factor
	basis/tools/deploy/shaker/shaker.factor
	basis/ui/backend/gtk/gtk.factor
	basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
Doug Coleman 2e7935d66e Change the way %coverage works, make coverage word use map-words to hit private vocabs, make %coverage only work on vocabs. 2011-08-27 15:54:25 -05:00
Doug Coleman 87e64b3a59 Document some words, move words around to be private 2011-08-27 12:52:01 -05:00
Doug Coleman 472fe7fa4b Better name for combinator -- each-word, each-map to iterate over all words in vocab and its private vocab. Add count-callables and %coverage words. 2011-08-27 12:34:05 -05:00
Doug Coleman 571d619442 Use change-vocabulary-coverage word for toggle-coverage too to handle .private vocabs 2011-08-27 01:04:02 -05:00