John Benediktsson
d38a3fc44a
"H{ } substitute" is faster than "{ } substitute".
2012-07-13 19:06:38 -07:00
Doug Coleman
c3dcf43e03
core/basis: trim down using lists
2011-11-30 23:15:42 -08:00
Joe Groff
0f876e93b6
rearrange source-file-error error. to load earlier
...
Fixes #359
2011-11-15 18:26:35 -08:00
Doug Coleman
43c5c9162e
Make the require-hook throw an error if the vocabulary does not exist in the dictionary or on disk. Move require docs to vocabs. Add unit tests for require. Fixes #339 .
2011-11-03 11:39:34 -07:00
Doug Coleman
201109937e
vocabs.loader: Fix spacing. Remove unit test.
2011-11-02 19:30:54 -07:00
Doug Coleman
484836be3a
Rename (load-vocab) to (require), add tags.txt for "p" vocab loader test. Code formatting.
2011-11-02 18:07:22 -07:00
Doug Coleman
86974b11a2
Clean up formatting, rename load-vocab-hook to require-hook. Add a unit test for vocabs.loader.
2011-11-02 16:31:42 -07:00
Doug Coleman
be12f2b27d
Make "foo.private" require load foo instead.
...
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201 .
2011-11-02 11:50:03 -07:00
Doug Coleman
323ee6f53e
Cleanup vocab name validation. Vocab names and vocab prefixes are the same concept, and by disallowing slashes, spaces, and colon, we automatically check for absolute paths. Unit test this.
2011-10-29 01:05:37 -07:00
John Benediktsson
7b177d6237
vocabs.loader: actually use the root cache.
2011-10-24 16:19:59 -07:00
Doug Coleman
a7f6982354
Rename vocab to lookup-vocab
2011-10-24 06:42:54 -05:00
Doug Coleman
c66849384e
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
b45ed7a048
Normalize vocabulary roots by removing the last path separator so that scaffold tool works with trailing separators
2010-06-21 13:06:09 -05:00
Slava Pestov
1a6e5324c7
vocabs.refresh.monitor: spin off new monitor threads when add-vocab-root is called. Fixes a problem where depending on the order of startup hooks, refresh-all would sometimes be broken for custom vocab roots
2010-05-31 20:14:54 -04:00
Daniel Ehrenberg
2fa116980f
Fixing issue where require-when could create a circularity
2010-04-21 00:40:40 -05:00
Daniel Ehrenberg
daebac5f52
Adding docs on null? and the changes for require-when
2010-04-18 14:44:52 -05:00
Daniel Ehrenberg
7cdb543dd5
Fixing require-when
2010-04-18 14:08:21 -05:00
Daniel Ehrenberg
ab0bd7b88f
Attempting to make require-when work with multiple vocabs
2010-04-17 17:19:37 -05:00
Daniel Ehrenberg
88a4c58cda
Renaming require-if to require-when
2010-03-18 00:24:41 -04:00
Daniel Ehrenberg
df1fce9bba
require-if loads vocabs conditionally, now or later
2010-03-18 00:00:32 -04:00
Slava Pestov
7d90469666
vocabs.loader: tweak platform checking logic
2010-02-22 13:17:46 +13:00
Slava Pestov
0aad3e6e12
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Joe Groff
8e1a81f8d5
Revert "fix append-path and vocab-dir to use path-separator"
...
This reverts commit 0f3026b871 .
2010-02-17 16:06:45 -08:00
Joe Groff
de7bafbf47
Revert "vocabs.loader: make vocab-dir+ use path-separator too"
...
This reverts commit 2dcc720629 .
2010-02-17 16:05:59 -08:00
Joe Groff
2dcc720629
vocabs.loader: make vocab-dir+ use path-separator too
2010-02-16 19:29:42 -08:00
Joe Groff
0f3026b871
fix append-path and vocab-dir to use path-separator
2010-02-16 18:40:40 -08:00
Doug Coleman
8da9d0f203
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Slava Pestov
d227fcd33f
Move compiler.errors to basis
2009-04-13 02:18:41 -05:00
Slava Pestov
c4be8bd65a
Refactor error code so that error types are registered; listener prints a summary of errors
2009-04-12 16:08:46 -05:00
Slava Pestov
786475102d
Make more code infer
2009-03-17 02:19:50 -05:00
Slava Pestov
be4fb1e7d9
Move call( and execute( to core
2009-03-16 20:11:36 -05:00
Slava Pestov
6b99b04531
Add vocab: for vocab-relative paths
2009-02-15 19:53:21 -06:00
Slava Pestov
4204fd495f
Move formatted stream output words to io.styles; they didn't belong in core, and this reduces deployed image size
2009-01-13 17:12:43 -06:00
Slava Pestov
50e214c152
io.files split up and general refactoring work in progress
2008-12-14 20:03:00 -06:00
Slava Pestov
ccab34e7c4
Fix restart behavior with circular vocabs, and add a test for this
2008-12-09 04:50:33 -06:00
Slava Pestov
a558f91d5d
Better command-line processing
2008-12-01 16:10:48 -06:00
Slava Pestov
c2c07f8b22
Fix bootstrap
2008-11-23 00:24:36 -06:00
Slava Pestov
7c61cf190f
Circularity between vocabularies no longer causes an infinite loop; loading a vocabulary like json or furnace no longer loads certain files twice
2008-11-23 00:04:18 -06:00
Slava Pestov
f29300c6ba
Better error message when vocab top level forms leave crap on the stack
2008-11-16 19:47:52 -06:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
7887515d00
Fix stack effects of load-source, load-docs so that stack isn't filled up with crap in stage2
2008-09-13 21:23:25 -05:00
Slava Pestov
44f53de164
Move make to its own vocabulary, remove fry _ feature
2008-09-10 20:07:00 -05:00
Slava Pestov
680e028ccb
Remove blank line
2008-09-04 16:56:24 -05:00
Doug Coleman
9695df7fbd
fix loader bug i introduced
2008-08-30 21:01:54 -05:00
Doug Coleman
5122e137d4
bug i introduced -- reload was leaving a vocab object on stack
2008-08-30 15:21:14 -05:00
Doug Coleman
e5bec5bbb8
clean up vocab loader a bit
2008-08-30 13:31:00 -05:00
Slava Pestov
a8560f0f57
Don't store f in vocab root cache
2008-08-25 02:09:45 -05:00
Slava Pestov
f5c15481fe
Move io.styles to basis
2008-07-28 22:28:13 -05:00
Slava Pestov
d66f887736
Create basis vocab root
2008-07-28 22:03:13 -05:00
Slava Pestov
17b94261c5
Fix deploy tests
2008-07-02 21:52:28 -05:00