! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays classes.tuple combinators
combinators.short-circuit kernel literals math math.functions
-math.intervals math.order math.parser math.statistics sequences
-slots.syntax splitting system vocabs vocabs.loader ;
+math.intervals math.order math.statistics sequences slots.syntax
+system vocabs vocabs.loader ;
FROM: math.ranges => [a..b) ;
IN: calendar
-USING: calendar namespaces alien.c-types system
-windows.kernel32 kernel math combinators windows.errors
-accessors classes.struct calendar.format math.functions ;
+USING: accessors calendar classes.struct combinators kernel math
+math.functions system windows.errors windows.kernel32 ;
IN: calendar.windows
: timestamp>SYSTEMTIME ( timestamp -- SYSTEMTIME )
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: kernel arrays accessors fry sequences regexp.classes
-math.ranges math ;
+USING: accessors arrays kernel math regexp.classes sequences ;
IN: regexp.ast
TUPLE: negation term ;
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs classes combinators
-combinators.short-circuit combinators.smart fry kernel locals
-math math.order sequences sets unicode unicode.data ;
+combinators.short-circuit combinators.smart kernel math
+math.order sequences sets unicode unicode.data ;
FROM: ascii => ascii? ;
IN: regexp.classes
! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license.
-USING: regexp sequences kernel regexp.negation regexp.ast
-accessors fry regexp.classes strings ;
+USING: accessors kernel regexp regexp.ast regexp.classes
+sequences strings ;
IN: regexp.combinators
<PRIVATE
! Copyright (C) 2009 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors assocs combinators combinators.short-circuit
-fry kernel kernel.private locals math namespaces regexp.classes
+kernel kernel.private math namespaces regexp.classes
regexp.transition-tables sequences sequences.private sets
strings unicode words ;
IN: regexp.compiler
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs fry kernel locals regexp.ast
-regexp.classes regexp.transition-tables sequences sets vectors ;
+USING: accessors arrays assocs kernel regexp.ast regexp.classes
+regexp.transition-tables sequences sets vectors ;
IN: regexp.dfa
: find-delta ( states transition nfa -- new-states )
! Copyright (C) 2009 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs fry kernel locals math math.bits
-regexp.ast regexp.classes regexp.transition-tables sequences
-sets ;
+USING: accessors arrays assocs kernel math math.bits regexp.ast
+regexp.classes regexp.transition-tables sequences sets ;
IN: regexp.disambiguate
TUPLE: parts in out ;
! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs combinators.short-circuit fry
-hash-sets kernel locals math regexp.classes
-regexp.transition-tables sequences sets sorting ;
+USING: accessors arrays assocs combinators.short-circuit
+hash-sets kernel math regexp.classes regexp.transition-tables
+sequences sets sorting ;
IN: regexp.minimize
: table>state-numbers ( table -- assoc )
! Copyright (C) 2009 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors assocs fry hashtables kernel namespaces
-regexp.ast regexp.classes regexp.dfa regexp.disambiguate
-regexp.minimize regexp.nfa regexp.transition-tables sequences
-sets vectors ;
+USING: accessors assocs hashtables kernel namespaces regexp.ast
+regexp.classes regexp.dfa regexp.disambiguate regexp.minimize
+regexp.nfa regexp.transition-tables sequences sets vectors ;
IN: regexp.negation
CONSTANT: fail-state -1
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs combinators.short-circuit fry
-kernel locals math memoize namespaces regexp.ast regexp.classes
+USING: accessors arrays assocs combinators.short-circuit kernel
+math namespaces regexp.ast regexp.classes
regexp.transition-tables sequences sets unicode vectors ;
IN: regexp.nfa
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs combinators
-combinators.short-circuit interval-maps kernel locals
-math.parser memoize multiline peg.ebnf regexp.ast regexp.classes
-sequences sets splitting strings unicode unicode.data
-unicode.script ;
+combinators.short-circuit interval-maps kernel math.parser
+multiline peg.ebnf regexp.ast regexp.classes sequences sets
+splitting strings unicode unicode.data unicode.script ;
IN: regexp.parser
: allowed-char? ( ch -- ? )
! Copyright (C) 2008, 2009 Doug Coleman, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors combinators kernel kernel.private math sequences
-sequences.private strings sets assocs make lexer namespaces parser
-arrays fry locals regexp.parser splitting sorting regexp.ast
-regexp.negation regexp.compiler compiler.units words math.ranges ;
+USING: accessors arrays compiler.units kernel kernel.private
+lexer make math math.ranges namespaces regexp.ast
+regexp.compiler regexp.negation regexp.parser sequences
+sequences.private splitting strings vocabs.loader words ;
IN: regexp
TUPLE: regexp
SYNTAX: R/ parse-regexp ;
-USE: vocabs.loader
{ "prettyprint" "regexp" } "regexp.prettyprint" require-when
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs fry hashtables kernel locals
-regexp.classes sequences sets vectors ;
+USING: accessors arrays assocs hashtables kernel regexp.classes
+sequences sets vectors ;
IN: regexp.transition-tables
TUPLE: transition-table transitions start-state final-states ;
! Copyright (C) 2008 Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors byte-arrays io io.encodings
-io.encodings.private kernel math sequences strings ;
+USING: accessors io io.encodings io.encodings.private kernel
+math sequences strings ;
IN: io.encodings.ascii
SINGLETON: ascii