Updating code in basis and extra for stricter vocab search path semantics

db4
Slava Pestov 2009-05-14 23:23:06 -05:00
parent b31fe9b8f2
commit b62630b5ac
63 changed files with 98 additions and 101 deletions

View File

@ -421,7 +421,7 @@ PRIVATE>
: define-fortran-record ( name vocab fields -- ) : define-fortran-record ( name vocab fields -- )
[ >lower ] [ ] [ fortran-record>c-struct ] tri* define-struct ; [ >lower ] [ ] [ fortran-record>c-struct ] tri* define-struct ;
SYNTAX: RECORD: scan in get parse-definition define-fortran-record ; SYNTAX: RECORD: scan current-vocab parse-definition define-fortran-record ;
: set-fortran-abi ( library -- ) : set-fortran-abi ( library -- )
library-fortran-abis get-global at fortran-abi set ; library-fortran-abis get-global at fortran-abi set ;

View File

@ -3,7 +3,7 @@
! !
! Channels - based on ideas from newsqueak ! Channels - based on ideas from newsqueak
USING: kernel sequences threads continuations USING: kernel sequences threads continuations
random math accessors random ; random math accessors ;
IN: channels IN: channels
TUPLE: channel receivers senders ; TUPLE: channel receivers senders ;

View File

@ -1,7 +1,7 @@
! Copyright (C) 2006, 2008 Doug Coleman. ! Copyright (C) 2006, 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: arrays combinators kernel io io.encodings.binary io.files USING: arrays combinators kernel io io.encodings.binary io.files
io.streams.byte-array math.vectors strings sequences namespaces io.streams.byte-array math.vectors strings namespaces
make math parser sequences assocs grouping vectors io.binary make math parser sequences assocs grouping vectors io.binary
hashtables math.bitwise checksums checksums.common hashtables math.bitwise checksums checksums.common
checksums.stream ; checksums.stream ;

View File

@ -1,7 +1,8 @@
! Copyright (C) 2009 Doug Coleman. ! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel db.errors peg.ebnf strings sequences math USING: kernel db.errors peg.ebnf strings sequences math
combinators.short-circuit accessors math.parser quoting ; combinators.short-circuit accessors math.parser quoting
locals ;
IN: db.errors.postgresql IN: db.errors.postgresql
EBNF: parse-postgresql-sql-error EBNF: parse-postgresql-sql-error

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: concurrency.combinators db.pools db.sqlite db.tuples USING: concurrency.combinators db.pools db.sqlite db.tuples
db.types kernel math random threads tools.test db sequences db.types kernel math random threads tools.test db sequences
io prettyprint db.postgresql db.sqlite accessors io.files.temp io prettyprint db.postgresql accessors io.files.temp
namespaces fry system math.parser ; namespaces fry system math.parser ;
IN: db.tester IN: db.tester

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: arrays assocs classes db kernel namespaces USING: arrays assocs classes db kernel namespaces
classes.tuple words sequences slots math accessors classes.tuple words sequences slots math accessors
math.parser io prettyprint db.types continuations math.parser io prettyprint continuations
destructors mirrors sets db.types db.private fry destructors mirrors sets db.types db.private fry
combinators.short-circuit db.errors ; combinators.short-circuit db.errors ;
IN: db.tuples IN: db.tuples

View File

@ -1,10 +1,10 @@
! Copyright (C) 2008 John Benediktsson ! Copyright (C) 2008 John Benediktsson
! See http://factorcode.org/license.txt for BSD license ! See http://factorcode.org/license.txt for BSD license
USING: accessors arrays ascii assocs calendar combinators fry kernel USING: accessors arrays assocs calendar combinators fry kernel
generalizations io io.encodings.ascii io.files io.streams.string generalizations io io.streams.string macros math math.functions
macros math math.functions math.parser peg.ebnf quotations math.parser peg.ebnf quotations sequences splitting strings
sequences splitting strings unicode.case vectors combinators.smart ; unicode.categories unicode.case vectors combinators.smart ;
IN: formatting IN: formatting

View File

@ -1,5 +1,5 @@
USING: help.markup help.syntax io.streams.string quotations USING: help.markup help.syntax io.streams.string quotations
strings calendar serialize kernel furnace.db words words.symbol strings calendar serialize furnace.db words words.symbol
kernel ; kernel ;
IN: furnace.sessions IN: furnace.sessions

View File

@ -1,7 +1,7 @@
USING: cocoa cocoa.plists core-foundation iokit iokit.hid USING: cocoa cocoa.plists core-foundation iokit iokit.hid
kernel cocoa.enumeration destructors math.parser cocoa.application kernel cocoa.enumeration destructors math.parser cocoa.application
sequences locals combinators.short-circuit threads sequences locals combinators.short-circuit threads
namespaces assocs vectors arrays combinators hints alien namespaces assocs arrays combinators hints alien
core-foundation.run-loop accessors sequences.private core-foundation.run-loop accessors sequences.private
alien.c-types math parser game-input vectors ; alien.c-types math parser game-input vectors ;
IN: game-input.iokit IN: game-input.iokit

View File

@ -4,7 +4,7 @@ USING: io.encodings.utf8 io.encodings.ascii io.encodings.binary
io.files io.files.temp io.directories html.streams help kernel io.files io.files.temp io.directories html.streams help kernel
assocs sequences make words accessors arrays help.topics vocabs assocs sequences make words accessors arrays help.topics vocabs
vocabs.hierarchy help.vocabs namespaces prettyprint io vocabs.hierarchy help.vocabs namespaces prettyprint io
vocabs.loader serialize fry memoize ascii unicode.case math.order vocabs.loader serialize fry memoize unicode.case math.order
sorting debugger html xml.syntax xml.writer math.parser ; sorting debugger html xml.syntax xml.writer math.parser ;
IN: help.html IN: help.html

View File

@ -1,8 +1,9 @@
IN: html.templates.chloe IN: html.templates.chloe
USING: xml.data help.markup help.syntax html.components html.forms USING: help.markup help.syntax html.components html.forms
html.templates html.templates.chloe.syntax html.templates html.templates.chloe.syntax
html.templates.chloe.compiler html.templates.chloe.components html.templates.chloe.compiler html.templates.chloe.components
math strings quotations namespaces ; math strings quotations namespaces ;
FROM: xml.data => tag ;
HELP: <chloe> HELP: <chloe>
{ $values { "path" "a pathname string without the trailing " { $snippet ".xml" } " extension" } { "chloe" chloe } } { $values { "path" "a pathname string without the trailing " { $snippet ".xml" } " extension" } { "chloe" chloe } }

View File

@ -1,11 +1,11 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel sequences combinators kernel fry USING: accessors kernel sequences combinators fry
namespaces make classes.tuple assocs splitting words arrays io namespaces make classes.tuple assocs splitting words arrays io
io.files io.files.info io.encodings.utf8 io.streams.string io.files io.files.info io.encodings.utf8 io.streams.string
unicode.case mirrors math urls present multiline quotations xml unicode.case mirrors math urls present multiline quotations xml
logging logging
xml.data xml.writer xml.syntax strings xml.writer xml.syntax strings
html.forms html.forms
html html
html.components html.components

View File

@ -1,13 +1,11 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
IN: html.templates.chloe.syntax USING: accessors sequences combinators kernel namespaces classes.tuple
USING: accessors kernel sequences combinators kernel namespaces assocs splitting words arrays memoize parser lexer io io.files
classes.tuple assocs splitting words arrays memoize parser lexer io.encodings.utf8 io.streams.string unicode.case mirrors fry math urls
io io.files io.encodings.utf8 io.streams.string multiline xml xml.data xml.writer xml.syntax html.components
unicode.case mirrors fry math urls
multiline xml xml.data xml.writer xml.syntax
html.components
html.templates ; html.templates ;
IN: html.templates.chloe.syntax
SYMBOL: tags SYMBOL: tags

View File

@ -60,7 +60,7 @@ SYNTAX: %> lexer get parse-%> ;
[ [
"quiet" on "quiet" on
parser-notes off parser-notes off
"html.templates.fhtml" use+ "html.templates.fhtml" use-vocab
string-lines parse-template-lines string-lines parse-template-lines
] with-file-vocabs ; ] with-file-vocabs ;

View File

@ -17,7 +17,6 @@ io.servers.connection
io.timeouts io.timeouts
io.crlf io.crlf
fry logging logging.insomniac calendar urls urls.encoding fry logging logging.insomniac calendar urls urls.encoding
mime.multipart
unicode.categories unicode.categories
http http
http.parsers http.parsers
@ -27,6 +26,7 @@ html.templates
html.streams html.streams
html html
xml.writer ; xml.writer ;
FROM: mime.multipart => parse-multipart ;
IN: http.server IN: http.server
: check-absolute ( url -- url ) : check-absolute ( url -- url )
@ -283,8 +283,6 @@ M: http-server handle-client*
: http-insomniac ( -- ) : http-insomniac ( -- )
"http.server" { "httpd-hit" } schedule-insomniac ; "http.server" { "httpd-hit" } schedule-insomniac ;
USE: vocabs.loader
"http.server.filters" require "http.server.filters" require
"http.server.dispatchers" require "http.server.dispatchers" require
"http.server.redirection" require "http.server.redirection" require

View File

@ -1,7 +1,7 @@
! Copyright (C) 2007, 2009 Daniel Ehrenberg. ! Copyright (C) 2007, 2009 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel words summary slots quotations USING: accessors kernel words summary slots quotations
sequences assocs math arrays stack-checker effects generalizations sequences assocs math arrays stack-checker effects
continuations debugger classes.tuple namespaces make vectors continuations debugger classes.tuple namespaces make vectors
bit-arrays byte-arrays strings sbufs math.functions macros bit-arrays byte-arrays strings sbufs math.functions macros
sequences.private combinators mirrors splitting combinators.smart sequences.private combinators mirrors splitting combinators.smart

View File

@ -2,8 +2,9 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: xml xml.data kernel io io.encodings interval-maps splitting fry USING: xml xml.data kernel io io.encodings interval-maps splitting fry
math.parser sequences combinators assocs locals accessors math arrays math.parser sequences combinators assocs locals accessors math arrays
byte-arrays values io.encodings.ascii ascii io.files biassocs byte-arrays values ascii io.files biassocs math.order
math.order combinators.short-circuit io.binary io.encodings.iana ; combinators.short-circuit io.binary io.encodings.iana ;
FROM: io.encodings.ascii => ascii ;
IN: io.encodings.gb18030 IN: io.encodings.gb18030
SINGLETON: gb18030 SINGLETON: gb18030

View File

@ -2,7 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: continuations destructors io.files io.files.info USING: continuations destructors io.files io.files.info
io.backend kernel quotations system alien alien.accessors io.backend kernel quotations system alien alien.accessors
accessors system vocabs.loader combinators alien.c-types accessors vocabs.loader combinators alien.c-types
math ; math ;
IN: io.mmap IN: io.mmap

View File

@ -126,14 +126,6 @@ write-test-2 "q" set
[ 9 ] [ 4 write-test-5 ] unit-test [ 9 ] [ 4 write-test-5 ] unit-test
SYMBOL: a
:: use-test ( a b c -- a b c )
USE: kernel
a b c ;
[ t ] [ a symbol? ] unit-test
:: let-let-test ( n -- n ) [let | n [ n 3 + ] | n ] ; :: let-let-test ( n -- n ) [let | n [ n 3 + ] | n ] ;
[ 13 ] [ 10 let-let-test ] unit-test [ 13 ] [ 10 let-let-test ] unit-test

View File

@ -461,7 +461,7 @@ M: ebnf-sequence build-locals ( code ast -- code )
M: ebnf-var build-locals ( code ast -- ) M: ebnf-var build-locals ( code ast -- )
[ [
"USING: locals kernel ; [let* | " % "FROM: locals => [let* ; FROM: kernel => dup ; [let* | " %
name>> % " [ dup ] " % name>> % " [ dup ] " %
" | " % " | " %
% %

View File

@ -1,4 +1,4 @@
USING: kernel random math accessors random ; USING: kernel math accessors random ;
IN: random.dummy IN: random.dummy
TUPLE: random-dummy i ; TUPLE: random-dummy i ;

View File

@ -1,9 +1,10 @@
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg. ! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel math math.order words combinators locals USING: accessors kernel math math.order words combinators locals
ascii unicode.categories combinators.short-circuit sequences unicode.categories combinators.short-circuit sequences
fry macros arrays assocs sets classes mirrors unicode.script fry macros arrays assocs sets classes mirrors unicode.script
unicode.data ; unicode.data ;
FROM: ascii => ascii? ;
IN: regexp.classes IN: regexp.classes
SINGLETONS: dot letter-class LETTER-class Letter-class digit-class SINGLETONS: dot letter-class LETTER-class Letter-class digit-class

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: sequences grouping assocs kernel ascii ascii tr ; USING: sequences grouping assocs kernel ascii tr ;
IN: soundex IN: soundex
TR: soundex-tr TR: soundex-tr

View File

@ -4,7 +4,7 @@ USING: accessors combinators kernel system unicode.case io.files
io.files.info io.files.info.unix generalizations io.files.info io.files.info.unix generalizations
strings arrays sequences math.parser unix.groups unix.users strings arrays sequences math.parser unix.groups unix.users
tools.files.private unix.stat math fry macros combinators.smart tools.files.private unix.stat math fry macros combinators.smart
io.files.info.unix io tools.files math.order prettyprint ; io tools.files math.order prettyprint ;
IN: tools.files.unix IN: tools.files.unix
<PRIVATE <PRIVATE

View File

@ -20,7 +20,7 @@ SLOT: history
[ dup string>> { { CHAR: \n CHAR: \s } } substitute ] { } map>assoc [ dup string>> { { CHAR: \n CHAR: \s } } substitute ] { } map>assoc
<reversed> ; <reversed> ;
TUPLE: word-completion vocabs ; TUPLE: word-completion manifest ;
C: <word-completion> word-completion C: <word-completion> word-completion
SINGLETONS: vocab-completion char-completion history-completion ; SINGLETONS: vocab-completion char-completion history-completion ;
@ -62,8 +62,8 @@ M: definition-completion row-columns
2array ; 2array ;
M: word-completion row-color M: word-completion row-color
[ vocabulary>> ] [ vocabs>> ] bi* { [ vocabulary>> ] [ manifest>> ] bi* {
{ [ 2dup [ vocab-words ] dip memq? ] [ COLOR: black ] } { [ 2dup search-vocabs>> memq? ] [ COLOR: black ] }
{ [ over ".private" tail? ] [ COLOR: dark-red ] } { [ over ".private" tail? ] [ COLOR: dark-red ] }
[ COLOR: dark-gray ] [ COLOR: dark-gray ]
} cond 2nip ; } cond 2nip ;
@ -87,7 +87,7 @@ M: vocab-completion row-color
[ { 0 0 } ] 2dip doc-range ; [ { 0 0 } ] 2dip doc-range ;
: completion-mode ( interactor -- symbol ) : completion-mode ( interactor -- symbol )
[ vocabs>> ] [ editor-caret ] [ model>> ] tri up-to-caret " \r\n" split [ manifest>> ] [ editor-caret ] [ model>> ] tri up-to-caret " \r\n" split
{ {
{ [ dup { [ complete-IN:/USE:? ] [ complete-USING:? ] } 1|| ] [ 2drop vocab-completion ] } { [ dup { [ complete-IN:/USE:? ] [ complete-USING:? ] } 1|| ] [ 2drop vocab-completion ] }
{ [ dup complete-CHAR:? ] [ 2drop char-completion ] } { [ dup complete-CHAR:? ] [ 2drop char-completion ] }

View File

@ -55,7 +55,7 @@ M: vocab-completion (word-at-caret)
drop dup vocab-exists? [ >vocab-link ] [ drop f ] if ; drop dup vocab-exists? [ >vocab-link ] [ drop f ] if ;
M: word-completion (word-at-caret) M: word-completion (word-at-caret)
manifest>> search-manifest ; manifest>> dup [ search-manifest ] [ 2drop f ] if ;
M: char-completion (word-at-caret) M: char-completion (word-at-caret)
2drop f ; 2drop f ;

View File

@ -1,11 +1,10 @@
! Copyright (C) 2008 Daniel Ehrenberg. ! Copyright (C) 2008 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: combinators.short-circuit sequences io.files USING: sequences io.files io.encodings.ascii kernel values splitting
io.encodings.ascii kernel values splitting accessors math.parser accessors math.parser ascii io assocs strings math namespaces make
ascii io assocs strings math namespaces make sorting combinators sorting combinators math.order arrays unicode.normalize unicode.data
math.order arrays unicode.normalize unicode.data locals locals macros sequences.deep words unicode.breaks quotations
macros sequences.deep words unicode.breaks combinators.short-circuit simple-flat-file ;
quotations combinators.short-circuit simple-flat-file ;
IN: unicode.collation IN: unicode.collation
<PRIVATE <PRIVATE

View File

@ -1,7 +1,7 @@
! Copyright (C) 2005, 2009 Daniel Ehrenberg ! Copyright (C) 2005, 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: words assocs kernel accessors parser effects.parser USING: words assocs kernel accessors parser vocabs.parser effects.parser
sequences summary lexer splitting combinators locals xml.data sequences summary lexer splitting combinators locals
memoize sequences.deep xml.data xml.state xml namespaces present memoize sequences.deep xml.data xml.state xml namespaces present
arrays generalizations strings make math macros multiline arrays generalizations strings make math macros multiline
inverse combinators.short-circuit sorting fry unicode.categories inverse combinators.short-circuit sorting fry unicode.categories

View File

@ -1,6 +1,6 @@
USING: xmode.tokens xmode.marker xmode.catalog kernel locals USING: xmode.tokens xmode.marker xmode.catalog kernel io io.files
io io.files sequences words io.encodings.utf8 sequences words io.encodings.utf8 namespaces xml.entities accessors
namespaces xml.entities accessors xml.syntax locals xml.writer ; xml.syntax locals xml.writer ;
IN: xmode.code2html IN: xmode.code2html
: htmlize-tokens ( tokens -- xml ) : htmlize-tokens ( tokens -- xml )

View File

@ -3,8 +3,7 @@
USING: kernel namespaces make xmode.rules xmode.tokens USING: kernel namespaces make xmode.rules xmode.tokens
xmode.marker.state xmode.marker.context xmode.utilities xmode.marker.state xmode.marker.context xmode.utilities
xmode.catalog sequences math assocs combinators strings xmode.catalog sequences math assocs combinators strings
regexp splitting unicode.case ascii regexp splitting ascii combinators.short-circuit accessors ;
combinators.short-circuit accessors ;
IN: xmode.marker IN: xmode.marker
! Next two words copied from parser-combinators ! Next two words copied from parser-combinators

View File

@ -1,9 +1,6 @@
USING: kernel math arrays math.vectors math.matrices USING: kernel math arrays math.vectors math.matrices namespaces make
namespaces make math.constants math.functions splitting grouping math.trig sequences
math.constants math.functions accessors 4DNav.deep models vars ;
math.vectors
splitting grouping math.trig
sequences accessors 4DNav.deep models vars ;
IN: 4DNav.turtle IN: 4DNav.turtle
! replacement of self ! replacement of self

View File

@ -15,7 +15,6 @@ accessors
namespaces namespaces
adsoda adsoda
models models
accessors
prettyprint prettyprint
; ;

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: backtrack shuffle math math.ranges quotations locals fry USING: backtrack shuffle math math.ranges quotations locals fry
kernel words io memoize macros io prettyprint sequences assocs kernel words io memoize macros prettyprint sequences assocs
combinators namespaces ; combinators namespaces ;
IN: benchmark.backtrack IN: benchmark.backtrack

View File

@ -3,6 +3,7 @@ destructors kernel math multiline opengl opengl.shaders
opengl.framebuffers opengl.gl opengl.textures opengl.demo-support fry opengl.framebuffers opengl.gl opengl.textures opengl.demo-support fry
opengl.capabilities sequences ui.gadgets combinators accessors opengl.capabilities sequences ui.gadgets combinators accessors
macros locals ; macros locals ;
FROM: opengl.demo-support => rect-vertices ;
IN: bunny.outlined IN: bunny.outlined
STRING: outlined-pass1-fragment-shader-main-source STRING: outlined-pass1-fragment-shader-main-source

View File

@ -2,8 +2,7 @@
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel peg strings sequences math math.parser USING: accessors kernel peg strings sequences math math.parser
namespaces make words quotations arrays hashtables io namespaces make words quotations arrays hashtables io
io.streams.string assocs ascii peg.parsers accessors io.streams.string assocs ascii peg.parsers words.symbol ;
words.symbol ;
IN: fjsc IN: fjsc
TUPLE: ast-number value ; TUPLE: ast-number value ;

View File

@ -6,7 +6,7 @@ vectors vocabs.parser ;
IN: fuel.eval IN: fuel.eval
TUPLE: fuel-status in use restarts ; TUPLE: fuel-status manifest restarts ;
SYMBOL: fuel-status-stack SYMBOL: fuel-status-stack
V{ } clone fuel-status-stack set-global V{ } clone fuel-status-stack set-global
@ -24,7 +24,7 @@ t fuel-eval-res-flag set-global
fuel-eval-res-flag get-global ; fuel-eval-res-flag get-global ;
: fuel-push-status ( -- ) : fuel-push-status ( -- )
in get use get clone restarts get-global clone manifest get clone restarts get-global clone
fuel-status boa fuel-status boa
fuel-status-stack get push ; fuel-status-stack get push ;
@ -34,9 +34,9 @@ t fuel-eval-res-flag set-global
: fuel-pop-status ( -- ) : fuel-pop-status ( -- )
fuel-status-stack get empty? [ fuel-status-stack get empty? [
fuel-status-stack get pop fuel-status-stack get pop
[ in>> in set ] [ manifest>> clone manifest set ]
[ use>> clone use set ] [ restarts>> fuel-pop-restarts ]
[ restarts>> fuel-pop-restarts ] tri bi
] unless ; ] unless ;
: fuel-forget-error ( -- ) f error set-global ; : fuel-forget-error ( -- ) f error set-global ;
@ -60,11 +60,11 @@ t fuel-eval-res-flag set-global
[ print-error ] recover ; [ print-error ] recover ;
: (fuel-eval-usings) ( usings -- ) : (fuel-eval-usings) ( usings -- )
[ [ add-use ] curry [ drop ] recover ] each [ [ use-vocab ] curry [ drop ] recover ] each
fuel-forget-error fuel-forget-output ; fuel-forget-error fuel-forget-output ;
: (fuel-eval-in) ( in -- ) : (fuel-eval-in) ( in -- )
[ in set ] when* ; [ set-current-vocab ] when* ;
: (fuel-eval-in-context) ( lines in usings -- ) : (fuel-eval-in-context) ( lines in usings -- )
(fuel-begin-eval) (fuel-begin-eval)

View File

@ -35,7 +35,11 @@ MEMO: (vocab-words) ( name -- seq )
>vocab-link words [ name>> ] map ; >vocab-link words [ name>> ] map ;
: current-words ( -- seq ) : current-words ( -- seq )
use get [ keys ] map concat ; inline manifest get
[ search-vocabs>> [ words>> ] map ]
[ qualified-vocabs>> [ words>> ] map ]
[ extra-words>> ]
tri 3append assoc-combine keys ; inline
: vocabs-words ( names -- seq ) : vocabs-words ( names -- seq )
prune [ (vocab-words) ] map concat ; inline prune [ (vocab-words) ] map concat ; inline

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: slides help.markup math arrays hashtables namespaces USING: slides help.markup math arrays hashtables namespaces
sequences kernel sequences parser memoize io.encodings.binary kernel sequences parser memoize io.encodings.binary
locals kernel.private help.vocabs assocs quotations locals kernel.private help.vocabs assocs quotations
urls peg.ebnf tools.annotations tools.crossref urls peg.ebnf tools.annotations tools.crossref
help.topics math.functions compiler.tree.optimizer help.topics math.functions compiler.tree.optimizer

View File

@ -1,9 +1,8 @@
! Copyright (C) 2009 Diego Martinelli. ! Copyright (C) 2009 Diego Martinelli.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors byte-arrays calendar calendar.format USING: accessors byte-arrays calendar calendar.format checksums
checksums checksums.openssl classes.tuple checksums.openssl classes.tuple fry kernel make math math.functions
fry kernel make math math.functions math.parser math.ranges math.parser math.ranges present random sequences splitting strings ;
present random sequences splitting strings syntax ;
IN: hashcash IN: hashcash
! Hashcash implementation ! Hashcash implementation

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Doug Coleman. ! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: assocs html.parser kernel math sequences strings ascii USING: assocs html.parser kernel math sequences strings ascii
arrays generalizations shuffle unicode.case namespaces make arrays generalizations shuffle namespaces make
splitting http accessors io combinators http.client urls splitting http accessors io combinators http.client urls
urls.encoding fry prettyprint sets ; urls.encoding fry prettyprint sets ;
IN: html.parser.analyzer IN: html.parser.analyzer

View File

@ -1,7 +1,7 @@
! Copyright (C) 2009 Tim Wawrzynczak, Doug Coleman. ! Copyright (C) 2009 Tim Wawrzynczak, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: sequences io io.encodings.binary io.files io.pathnames USING: sequences io io.encodings.binary io.files io.pathnames
strings kernel math io.mmap io.mmap.uchar accessors syntax strings kernel math io.mmap io.mmap.uchar accessors
combinators math.ranges unicode.categories byte-arrays combinators math.ranges unicode.categories byte-arrays
io.encodings.string io.encodings.utf16 assocs math.parser io.encodings.string io.encodings.utf16 assocs math.parser
combinators.short-circuit fry namespaces combinators.smart combinators.short-circuit fry namespaces combinators.smart

View File

@ -3,7 +3,7 @@
USING: accessors assocs combinators combinators.short-circuit USING: accessors assocs combinators combinators.short-circuit
effects fry infix.parser infix.ast kernel locals.parser effects fry infix.parser infix.ast kernel locals.parser
locals.types math multiline namespaces parser quotations locals.types math multiline namespaces parser quotations
sequences summary words ; sequences summary words vocabs.parser ;
IN: infix IN: infix
<PRIVATE <PRIVATE

View File

@ -1,6 +1,7 @@
! Copyright (C) 2007, 2008 Alex Chapman ! Copyright (C) 2007, 2008 Alex Chapman
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays colors combinators kernel literals locals math math.constants math.matrices math.order math.ranges math.vectors math.quadratic random sequences specialized-arrays.float vectors jamshred.oint ; USING: accessors arrays colors combinators kernel literals locals math math.constants math.matrices math.order math.ranges math.vectors math.quadratic random sequences specialized-arrays.float vectors jamshred.oint ;
FROM: jamshred.oint => distance ;
IN: jamshred.tunnel IN: jamshred.tunnel
CONSTANT: n-segments 5000 CONSTANT: n-segments 5000

View File

@ -1,6 +1,6 @@
! Copyright (C) 2006, 2007 Slava Pestov. ! Copyright (C) 2006, 2007 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs hashtables assocs io kernel math USING: accessors arrays hashtables assocs io kernel math
math.vectors math.matrices math.matrices.elimination namespaces math.vectors math.matrices math.matrices.elimination namespaces
parser prettyprint sequences words combinators math.parser parser prettyprint sequences words combinators math.parser
splitting sorting shuffle sets math.order ; splitting sorting shuffle sets math.order ;

View File

@ -4,7 +4,7 @@ USING: kernel namespaces sequences splitting system accessors
math.functions make io io.files io.pathnames io.directories math.functions make io io.files io.pathnames io.directories
io.directories.hierarchy io.launcher io.encodings.utf8 prettyprint io.directories.hierarchy io.launcher io.encodings.utf8 prettyprint
combinators.short-circuit parser combinators calendar combinators.short-circuit parser combinators calendar
calendar.format arrays mason.config locals system debugger fry calendar.format arrays mason.config locals debugger fry
continuations strings ; continuations strings ;
IN: mason.common IN: mason.common

View File

@ -1,8 +1,9 @@
! Copyright (C) 2008 Eduardo Cavazos, Slava Pestov. ! Copyright (C) 2008 Eduardo Cavazos, Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors calendar continuations debugger debugger io USING: accessors calendar continuations debugger io
io.directories io.files kernel mason.build mason.common io.directories io.files kernel mason.common
mason.email mason.updates namespaces threads ; mason.email mason.updates namespaces threads ;
FROM: mason.build => build ;
IN: mason IN: mason
: build-loop-error ( error -- ) : build-loop-error ( error -- )

View File

@ -1,6 +1,6 @@
! Copyright (C) 2008, 2009 Eduardo Cavazos, Slava Pestov. ! Copyright (C) 2008, 2009 Eduardo Cavazos, Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel debugger namespaces sequences splitting combinators USING: kernel debugger namespaces sequences splitting
combinators io io.files io.launcher prettyprint bootstrap.image combinators io io.files io.launcher prettyprint bootstrap.image
mason.common mason.release.branch mason.release.tidy mason.common mason.release.branch mason.release.tidy
mason.release.archive mason.release.upload mason.notify ; mason.release.archive mason.release.upload mason.notify ;

View File

@ -1,7 +1,7 @@
USING: calendar math fry kernel assocs math.ranges bson.reader io.streams.byte-array USING: calendar math fry kernel assocs math.ranges bson.reader io.streams.byte-array
sequences formatting combinators namespaces io tools.time prettyprint io.encodings.binary sequences formatting combinators namespaces io tools.time prettyprint io.encodings.binary
accessors words mongodb.driver strings math.parser tools.walker bson.writer accessors words mongodb.driver strings math.parser bson.writer ;
tools.continuations ; FROM: mongodb.driver => find ;
IN: mongodb.benchmark IN: mongodb.benchmark

View File

@ -2,6 +2,8 @@ USING: accessors assocs classes.mixin classes.tuple
classes.tuple.parser compiler.units fry kernel sequences mongodb.driver classes.tuple.parser compiler.units fry kernel sequences mongodb.driver
mongodb.msg mongodb.tuple.collection mongodb.msg mongodb.tuple.collection
mongodb.tuple.persistent mongodb.tuple.state strings ; mongodb.tuple.persistent mongodb.tuple.state strings ;
FROM: mongodb.driver => update delete find count ;
FROM: mongodb.tuple.persistent => assoc>tuple ;
IN: mongodb.tuple IN: mongodb.tuple

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: slides help.markup math arrays hashtables namespaces USING: slides help.markup math arrays hashtables namespaces
sequences kernel sequences parser memoize io.encodings.binary kernel sequences parser memoize io.encodings.binary
locals kernel.private help.vocabs assocs quotations locals kernel.private help.vocabs assocs quotations
tools.annotations tools.crossref help.topics math.functions tools.annotations tools.crossref help.topics math.functions
compiler.tree.optimizer compiler.cfg.optimizer fry compiler.tree.optimizer compiler.cfg.optimizer fry

View File

@ -1,6 +1,7 @@
! Copyright (C) 2008 Chris Double. ! Copyright (C) 2008 Chris Double.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: kernel accessors peg peg.ebnf peg.javascript.ast peg.javascript.tokenizer ; USING: kernel accessors sequences
peg peg.ebnf peg.javascript.ast peg.javascript.tokenizer ;
IN: peg.javascript.parser IN: peg.javascript.parser
#! Grammar for JavaScript. Based on OMeta-JS example from: #! Grammar for JavaScript. Based on OMeta-JS example from:

View File

@ -143,6 +143,6 @@ PRIVATE>
SYNTAX: SOLUTION: SYNTAX: SOLUTION:
scan-word scan-word
[ name>> "-main" append create-in ] keep [ name>> "-main" append create-in ] keep
[ drop in get vocab (>>main) ] [ drop current-vocab (>>main) ]
[ [ . ] swap prefix (( -- )) define-declared ] [ [ . ] swap prefix (( -- )) define-declared ]
2bi ; 2bi ;

View File

@ -3,6 +3,7 @@ opengl.shaders opengl.framebuffers opengl.capabilities multiline
ui.gadgets accessors sequences ui.render ui math locals arrays ui.gadgets accessors sequences ui.render ui math locals arrays
generalizations combinators ui.gadgets.worlds generalizations combinators ui.gadgets.worlds
literals ui.pixel-formats ; literals ui.pixel-formats ;
FROM: opengl.demo-support => rect-vertices ;
IN: spheres IN: spheres
STRING: plane-vertex-shader STRING: plane-vertex-shader

View File

@ -1,6 +1,7 @@
! Copyright (C) 2006, 2007, 2008 Alex Chapman ! Copyright (C) 2006, 2007, 2008 Alex Chapman
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors alarms arrays calendar kernel make math math.rectangles math.parser namespaces sequences system tetris.game tetris.gl ui.gadgets ui.gadgets.labels ui.gadgets.worlds ui.gadgets.status-bar ui.gestures ui.render ui ; USING: accessors alarms arrays calendar kernel make math math.rectangles math.parser namespaces sequences system tetris.game tetris.gl ui.gadgets ui.gadgets.labels ui.gadgets.worlds ui.gadgets.status-bar ui.gestures ui.render ui ;
FROM: tetris.game => level>> ;
IN: tetris IN: tetris
TUPLE: tetris-gadget < gadget { tetris tetris } { alarm } ; TUPLE: tetris-gadget < gadget { tetris tetris } { alarm } ;

View File

@ -1,4 +1,5 @@
USING: accessors kernel fry math models ui.gadgets ui.gadgets.books ui.gadgets.buttons ; USING: accessors kernel fry math models ui.gadgets ui.gadgets.books ui.gadgets.buttons ;
FROM: models => change-model ;
IN: ui.gadgets.book-extras IN: ui.gadgets.book-extras
: <book*> ( pages -- book ) 0 <model> <book> ; : <book*> ( pages -- book ) 0 <model> <book> ;
: |<< ( book -- ) 0 swap set-control-value ; : |<< ( book -- ) 0 swap set-control-value ;

View File

@ -1,7 +1,7 @@
! Copyright (C) 2008 Slava Pestov. ! Copyright (C) 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: slides help.markup math arrays hashtables namespaces USING: slides help.markup math arrays hashtables namespaces
sequences kernel sequences parser memoize io.encodings.binary kernel sequences parser memoize io.encodings.binary
locals kernel.private help.vocabs assocs quotations urls locals kernel.private help.vocabs assocs quotations urls
peg.ebnf tools.annotations tools.crossref help.topics peg.ebnf tools.annotations tools.crossref help.topics
math.functions compiler.tree.optimizer compiler.cfg.optimizer math.functions compiler.tree.optimizer compiler.cfg.optimizer

View File

@ -37,7 +37,7 @@ IN: webapps.site-watcher
"twitter" value >>twitter "twitter" value >>twitter
"sms" value >>sms "sms" value >>sms
update-tuple update-tuple
site-list-url <redirect> f <redirect>
] >>submit ] >>submit
<protected> <protected>
"update notification details" >>description ; "update notification details" >>description ;

View File

@ -15,7 +15,7 @@ furnace.auth.login
furnace.boilerplate furnace.boilerplate
furnace.syndication furnace.syndication
validators validators
db.types db.tuples lcs farkup urls ; db.types db.tuples lcs urls ;
IN: webapps.wiki IN: webapps.wiki
: wiki-url ( rest path -- url ) : wiki-url ( rest path -- url )