John Benediktsson
f2d0752403
vocabs.parser: use hash-sets in search-vocab-names.
2013-03-08 10:09:41 -08:00
John Benediktsson
019080d82d
vocabs: only notify vocab-observers if we are creating a new vocab.
2013-03-05 21:13:45 -08:00
John Benediktsson
5487480126
core: cleanup USING lists.
2013-03-05 10:34:47 -08:00
John Benediktsson
33c4e19ff9
vocabs: change vocabs-changed to be vocab-changed and take a vocab argument.
2012-08-13 12:05:42 -07:00
John Benediktsson
29f3043061
vocabs.loader: early exit for private vocab.
2012-08-13 11:11:59 -07:00
John Benediktsson
e374f2fa19
vocabs: reverting recent private vocab changes.
2012-08-13 10:32:14 -07:00
John Benediktsson
fc449d55bf
vocabs.loader: adding tests for recent changes.
2012-08-10 15:15:38 -07:00
John Benediktsson
fa57d3e85d
vocabs.loader: simplify.
2012-08-10 15:11:42 -07:00
John Benediktsson
41ed793756
vocabs.loader: more private fixes.
2012-08-10 15:08:40 -07:00
John Benediktsson
344b89fe5f
vocabs.loader: better fix for append-vocab-dir.
2012-08-10 15:01:37 -07:00
John Benediktsson
98f4ec7c43
vocabs.loader: vocab-dir should work with private vocabs too.
2012-08-10 14:43:59 -07:00
John Benediktsson
b957ad1684
vocabs: make source/docs/tests work for private vocabs.
2012-08-10 14:39:53 -07:00
John Benediktsson
6077f2d6c6
Revert "vocabs.loader: teach append-vocab-dir about private vocabs."
...
This reverts commit 9b98c098c1
.
2012-07-30 11:50:22 -07:00
John Benediktsson
42922cee81
vocabs.loader: teach append-vocab-dir about private vocabs.
2012-07-30 11:36:54 -07:00
John Benediktsson
4fe25c8fd2
vocabs.parser: speedup parse-datum for numbers.
2012-07-20 22:48:47 -07:00
Doug Coleman
42f4dc36b2
namespaces: Rename ``bind`` to ``with-variables``. Update a few places that called ``global [ ] with-variables`` to use ``with-global``.
2012-07-19 00:02:47 -07:00
John Benediktsson
28377f49e7
vocabs: faster check-vocab-name.
2012-07-15 14:21:25 -07:00
John Benediktsson
4f260ab9bd
"H{ } substitute" is faster than "{ } substitute".
2012-07-13 19:06:38 -07:00
Doug Coleman
9d4d5d0d00
renaming fixes: Forgot some words.
2012-06-21 11:54:43 -07:00
Doug Coleman
2f167560f1
issue #358 : rename no-current-vocab
2012-06-21 08:38:05 -07:00
Slava Pestov
d1b6106011
Set up listener's manifest so that words defined in "scratchpad" take precedence over other vocabularies and do not raise a restart. This matches the behavior of IN: and USE: in files, where the IN: takes precedence. Also remove unused clear-manifest word. Fixes #407
2012-01-02 23:18:52 -06:00
Doug Coleman
3ba787b277
core/basis: trim down using lists
2011-11-30 23:15:42 -08:00
Joe Groff
5a66b3b329
rearrange source-file-error error. to load earlier
...
Fixes #359
2011-11-15 18:26:35 -08:00
Doug Coleman
c731dc6edb
Rename lookup to lookup-word.
2011-11-06 16:00:00 -08:00
Doug Coleman
f6353e17cd
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
7699fb92b1
vocabs.loader: Fix spacing. Remove unit test.
2011-11-02 19:30:54 -07:00
Doug Coleman
1eed9203bb
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
a09a278981
Add a unit test vocabulary for vocabs.loadeer.
2011-11-02 16:47:53 -07:00
Doug Coleman
fb44adef99
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
94db86a6db
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
aa7f22edc0
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
ea4fe562c3
vocabs.loader: actually use the root cache.
2011-10-24 16:19:59 -07:00
Doug Coleman
26872ffe4d
Rename vocab to lookup-vocab
2011-10-24 06:42:54 -05:00
Doug Coleman
3d65fbf1c7
Remove docs for removed word
2011-10-24 00:57:14 -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
John Benediktsson
605c2b265e
vocabs: adding docs for 'parent-vocab?' and 'parent-vocabs'.
2011-09-25 18:36:20 -07:00
John Benediktsson
46df742317
vocabs: adding 'parent-vocab?' and 'parent-vocabs'.
2011-09-25 18:32:03 -07: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
Erik Charlebois
305dcf1551
Use .factor-rc etc on Windows too, files can begin with dots just fine
2011-05-23 23:36:13 -04:00
Keita Haga
dcb387630b
sequences, syntax, vocabs.parser: remove useless whitespace in docs
2010-12-23 03:42:41 +09:00
Keita Haga
1270167513
vocabs: fix typo in docs
2010-11-14 17:14:40 +09:00
Philipp Brüschweiler
39d475e996
ui.backend.gtk: use png instead of ico to represent icons
2010-07-22 22:48:18 +02:00
Philipp Brüschweiler
035ba3bc93
ui.backend.gtk, tools.deploy.unix: support for icons
2010-07-22 12:39:16 +02:00
Doug Coleman
3b11e2d6aa
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
71cc16df2a
vocabs.loader: tweak docs
2010-06-13 18:12:57 -04:00
Slava Pestov
f78bbb865e
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
Slava Pestov
627295f094
Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO)
2010-05-06 17:21:02 -04:00
Slava Pestov
5ac954b154
vocabs: add a link to the parse-time word lookup article
2010-04-28 05:04:09 -04:00
Daniel Ehrenberg
c5530080c4
Fixing issue where require-when could create a circularity
2010-04-21 00:40:40 -05:00
Daniel Ehrenberg
26c3bf2611
Adding docs on null? and the changes for require-when
2010-04-18 14:44:52 -05:00
Daniel Ehrenberg
099ffa1f5e
Fixing require-when
2010-04-18 14:08:21 -05:00
Daniel Ehrenberg
00176e7bd1
Attempting to make require-when work with multiple vocabs
2010-04-17 17:19:37 -05:00
Slava Pestov
da6bcbedfc
Replace 'untested' tag with 'not loaded' and 'not tested' tags
2010-04-13 18:43:01 -07:00
Daniel Ehrenberg
7dd44bfccf
Docs for require-when
2010-03-19 06:45:55 -04:00
Daniel Ehrenberg
bcba3ab5ec
Untested tags for vocabs.loader.test.[mno]
2010-03-19 06:34:25 -04:00
Daniel Ehrenberg
9e602d213f
Renaming require-if to require-when
2010-03-18 00:24:41 -04:00
Daniel Ehrenberg
043578ca1d
require-if loads vocabs conditionally, now or later
2010-03-18 00:00:32 -04:00
Slava Pestov
2ab1be755c
vocabs.loader: tweak platform checking logic
2010-02-22 13:17:46 +13:00
Slava Pestov
2f70ebd4d0
vocabs: document platforms.txt
2010-02-21 20:38:09 +13:00
Slava Pestov
1915b7e955
vocabs.loader.test.a: fix
2010-02-20 13:31:51 +13:00
Slava Pestov
95bfc8a240
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
e70fcf159d
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
f26460450e
Revert "vocabs.loader: make vocab-dir+ use path-separator too"
...
This reverts commit 2dcc720629
.
2010-02-17 16:05:59 -08:00
Joe Groff
27cfeec43a
vocabs.loader: make vocab-dir+ use path-separator too
2010-02-16 19:29:42 -08:00
Joe Groff
4a182cfbad
fix append-path and vocab-dir to use path-separator
2010-02-16 18:40:40 -08:00
Joe Groff
bd2b72ad08
update vocabs and tools.deploy docs to mention icon files
2010-02-15 14:18:26 -08:00
Joe Groff
45c85d1851
update vocabs and deploy docs to mention resources.txt
2010-02-15 10:14:30 -08:00
Brad Christensen
9b9322ea1e
A number of documentation fixes and cleanup.
2010-02-03 00:05:03 -07:00
Slava Pestov
73cbf46760
vocabs.parser: a couple of fixes
2010-01-27 23:20:17 +13:00
Slava Pestov
3237e48b2d
vocabs.parser: The manifest is now a definition observer, and updates itself when compilation units complete. This helps keep listener's search path up to date if vocabularies and words are renamed, defined, and undefined
...
- This makes forget-vocab more reliable in the listener
- It also fixes the problem of listener sessions where QUALIFIED: was used referring to outdated words if the vocabulary in question was reloaded
2010-01-27 20:49:26 +13:00
Slava Pestov
de3168ad71
Various documentation improvements
2010-01-26 01:01:12 +13:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Joe Groff
6047f79996
pronouns deserve antecedents
2009-11-07 23:15:30 -06:00
Joe Groff
2599993093
link vocabularies->words->quotations in synopsis documentation
2009-10-28 22:48:25 -05:00
Slava Pestov
50f5c3d116
remq -> remove-eq, delq -> remove-eq!
2009-10-28 00:23:08 -05:00
Slava Pestov
f5a0a8b6e1
delete -> remove!
2009-10-27 23:25:35 -05:00
Keith Lazuka
405e5d015b
docs: change $subsection to $subsections
2009-10-02 12:15:48 -04:00
Slava Pestov
7f2e2b1777
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Sam Anklesaria
cc38d1ada6
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
basis/functors/functors.factor
basis/io/launcher/launcher.factor
basis/ui/gadgets/tables/tables.factor
2009-07-22 10:02:09 -05:00
Slava Pestov
e630102252
vocabs.parser: add tests to assert that the correct errors get thrown
2009-07-18 07:02:13 -05:00
Slava Pestov
db3991125f
FROM: and RENAME: give a more meaningful error if the vocabulary does not exist
2009-07-18 06:51:29 -05:00
Sam Anklesaria
6132608cc2
extra sequences functions moved out of core
2009-06-17 12:35:09 -05:00
Sam Anklesaria
63204e677a
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
unmaintained/modules/rpc-server/rpc-server.factor
2009-06-14 11:56:45 -05:00
Slava Pestov
aba4fa7371
Recent vocabs.parser change had a regression: vocabs with no roots (scratchpad) were excluded from default use list. Also move with-interactive-vocabs to listener vocab
2009-06-07 21:59:13 -05:00
Slava Pestov
1e449c70f6
vocabs.parser: if bootstrap fails to load a vocab in interactive use list, don't fep
2009-06-05 17:33:00 -05:00
Sam Anklesaria
e2c99be00b
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-26 16:32:34 -05:00
Doug Coleman
407377fc98
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Sam Anklesaria
3b10d4d86e
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
basis/ui/gadgets/tables/tables.factor
core/vocabs/parser/parser.factor
2009-05-24 18:57:22 -05:00
Slava Pestov
9cc178b738
If a vocab fails to load, manifest would be left in a weird state (reported by Joe Groff)
2009-05-22 01:59:50 -05:00
Sam Anklesaria
db3840bc40
moved with-in-vocab back to rpc
2009-05-18 17:21:57 -05:00
Sam Anklesaria
4952fc6f9f
restarted modules vocab development
2009-05-16 19:50:16 -05:00
Slava Pestov
35ccf0231e
Factor out parser note code into parser.notes vocabulary, and print a note if a using list contains duplicates
2009-05-16 09:40:17 -05:00
Slava Pestov
90560d3959
Better presentation for ambiguous-use-error, fix ui.tools.listener now that 'search' can throw, make USE: and UNUSE: ignore dupes
2009-05-16 09:34:42 -05:00
Slava Pestov
274655e77c
More work on auto-use
2009-05-16 04:26:45 -05:00
Slava Pestov
5494f61df9
Auto-use now prints out USING: forms again
2009-05-16 02:32:55 -05:00
Slava Pestov
66a9416473
Update documentation for stricter vocabulary search path semantics
2009-05-16 00:29:21 -05:00
Slava Pestov
b31fe9b8f2
Implement stricter vocab search path semantics, with a new API for vocabs.parser. Add map-find-last to sequences vocab
2009-05-14 22:31:29 -05:00
Slava Pestov
0c1e519dcb
Rename use+ to add-use, move search to vocabs.parser, EXCLUDE: bombs out if word doesn't exist
2009-05-13 22:15:48 -05:00
Slava Pestov
fb5b48c71a
Fix some test failures
2009-05-04 09:44:26 -05:00
Slava Pestov
b2c3183b21
Split up tools.vocabs. Note that load-everything is now named load-all
2009-05-04 06:44:17 -05:00