Updating libraries that uses lazy-lists to use lists/lazy
parent
e4b88c61f3
commit
1818a743bd
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2007 Slava Pestov.
|
! Copyright (C) 2007 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: parser-combinators regexp lazy-lists sequences kernel
|
USING: parser-combinators regexp lists lists.lazy sequences kernel
|
||||||
promises strings unicode.case ;
|
promises strings unicode.case ;
|
||||||
IN: globs
|
IN: globs
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel parser-combinators namespaces sequences promises strings
|
USING: kernel parser-combinators namespaces sequences promises strings
|
||||||
assocs math math.parser math.vectors math.functions math.order
|
assocs math math.parser math.vectors math.functions math.order
|
||||||
lazy-lists hashtables ascii ;
|
lists lists.lazy hashtables ascii ;
|
||||||
IN: json.reader
|
IN: json.reader
|
||||||
|
|
||||||
! Grammar for JSON from RFC 4627
|
! Grammar for JSON from RFC 4627
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (c) 2007 Samuel Tardieu.
|
! Copyright (c) 2007 Samuel Tardieu.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: lazy-lists math.erato tools.test ;
|
USING: lists lists.lazy math.erato tools.test ;
|
||||||
IN: math.erato.tests
|
IN: math.erato.tests
|
||||||
|
|
||||||
[ { 2 3 5 7 11 13 17 19 } ] [ 20 lerato list>array ] unit-test
|
[ { 2 3 5 7 11 13 17 19 } ] [ 20 lerato list>array ] unit-test
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (c) 2007 Samuel Tardieu.
|
! Copyright (c) 2007 Samuel Tardieu.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: bit-arrays kernel lazy-lists math math.functions math.primes.list
|
USING: bit-arrays kernel lists lists.lazy math math.functions math.primes.list
|
||||||
math.ranges sequences ;
|
math.ranges sequences ;
|
||||||
IN: math.erato
|
IN: math.erato
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2007 Samuel Tardieu.
|
! Copyright (C) 2007 Samuel Tardieu.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: arrays kernel lazy-lists math math.primes namespaces sequences ;
|
USING: arrays kernel lists lists.lazy math math.primes namespaces sequences ;
|
||||||
IN: math.primes.factors
|
IN: math.primes.factors
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
USING: arrays math.primes tools.test lazy-lists ;
|
USING: arrays math.primes tools.test lists lists.lazy ;
|
||||||
|
|
||||||
{ 1237 } [ 1234 next-prime ] unit-test
|
{ 1237 } [ 1234 next-prime ] unit-test
|
||||||
{ f t } [ 1234 prime? 1237 prime? ] unit-test
|
{ f t } [ 1234 prime? 1237 prime? ] unit-test
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2007 Samuel Tardieu.
|
! Copyright (C) 2007 Samuel Tardieu.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: combinators kernel lazy-lists math math.functions math.miller-rabin
|
USING: combinators kernel lists lists.lazy math math.functions math.miller-rabin
|
||||||
math.order math.primes.list math.ranges sequences sorting ;
|
math.order math.primes.list math.ranges sequences sorting ;
|
||||||
IN: math.primes
|
IN: math.primes
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
USING: tools.test monads math kernel sequences lazy-lists promises ;
|
USING: tools.test monads math kernel sequences lists lists.lazy promises ;
|
||||||
IN: monads.tests
|
IN: monads.tests
|
||||||
|
|
||||||
[ 5 ] [ 1 identity-monad return [ 4 + ] fmap run-identity ] unit-test
|
[ 5 ] [ 1 identity-monad return [ 4 + ] fmap run-identity ] unit-test
|
||||||
|
|
|
@ -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: arrays kernel sequences sequences.deep splitting
|
USING: arrays kernel sequences sequences.deep splitting
|
||||||
accessors fry locals combinators namespaces lazy-lists
|
accessors fry locals combinators namespaces lists lists.lazy
|
||||||
shuffle ;
|
shuffle ;
|
||||||
IN: monads
|
IN: monads
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! 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 assocs combinators hashtables kernel lazy-lists math namespaces openal parser-combinators promises sequences strings symbols synth synth.buffers unicode.case ;
|
USING: accessors assocs combinators hashtables kernel lists lists.lazy math namespaces openal parser-combinators promises sequences strings symbols synth synth.buffers unicode.case ;
|
||||||
IN: morse
|
IN: morse
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
|
@ -23,4 +23,4 @@ HELP: any-char-parser
|
||||||
"from the input string. The value consumed is the "
|
"from the input string. The value consumed is the "
|
||||||
"result of the parse." }
|
"result of the parse." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: lazy-lists parser-combinators prettyprint ;" "\"foo\" any-char-parser parse-1 ." "102" } } ;
|
{ $example "USING: lists lists.lazy parser-combinators prettyprint ;" "\"foo\" any-char-parser parse-1 ." "102" } } ;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2005 Chris Double.
|
! Copyright (C) 2005 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel lazy-lists tools.test strings math
|
USING: kernel lists lists.lazy tools.test strings math
|
||||||
sequences parser-combinators arrays math.parser unicode.categories ;
|
sequences parser-combinators arrays math.parser unicode.categories ;
|
||||||
IN: parser-combinators.tests
|
IN: parser-combinators.tests
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2004 Chris Double.
|
! Copyright (C) 2004 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: lazy-lists promises kernel sequences strings math
|
USING: lists lists.lazy promises kernel sequences strings math
|
||||||
arrays splitting quotations combinators namespaces
|
arrays splitting quotations combinators namespaces
|
||||||
unicode.case unicode.categories sequences.deep ;
|
unicode.case unicode.categories sequences.deep ;
|
||||||
IN: parser-combinators
|
IN: parser-combinators
|
||||||
|
|
|
@ -11,7 +11,7 @@ HELP: 'digit'
|
||||||
"the input string. The numeric value of the digit "
|
"the input string. The numeric value of the digit "
|
||||||
" consumed is the result of the parse." }
|
" consumed is the result of the parse." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: lazy-lists parser-combinators parser-combinators.simple prettyprint ;" "\"123\" 'digit' parse-1 ." "1" } } ;
|
{ $example "USING: lists lists.lazy parser-combinators parser-combinators.simple prettyprint ;" "\"123\" 'digit' parse-1 ." "1" } } ;
|
||||||
|
|
||||||
HELP: 'integer'
|
HELP: 'integer'
|
||||||
{ $values
|
{ $values
|
||||||
|
@ -21,7 +21,7 @@ HELP: 'integer'
|
||||||
"the input string. The numeric value of the integer "
|
"the input string. The numeric value of the integer "
|
||||||
" consumed is the result of the parse." }
|
" consumed is the result of the parse." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: lazy-lists parser-combinators parser-combinators.simple prettyprint ;" "\"123\" 'integer' parse-1 ." "123" } } ;
|
{ $example "USING: lists lists.lazy parser-combinators parser-combinators.simple prettyprint ;" "\"123\" 'integer' parse-1 ." "123" } } ;
|
||||||
HELP: 'string'
|
HELP: 'string'
|
||||||
{ $values
|
{ $values
|
||||||
{ "parser" "a parser object" } }
|
{ "parser" "a parser object" } }
|
||||||
|
@ -30,7 +30,7 @@ HELP: 'string'
|
||||||
"quotations from the input string. The string value "
|
"quotations from the input string. The string value "
|
||||||
" consumed is the result of the parse." }
|
" consumed is the result of the parse." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: lazy-lists parser-combinators parser-combinators.simple prettyprint ;" "\"\\\"foo\\\"\" 'string' parse-1 ." "\"foo\"" } } ;
|
{ $example "USING: lists lists.lazy parser-combinators parser-combinators.simple prettyprint ;" "\"\\\"foo\\\"\" 'string' parse-1 ." "\"foo\"" } } ;
|
||||||
|
|
||||||
HELP: 'bold'
|
HELP: 'bold'
|
||||||
{ $values
|
{ $values
|
||||||
|
@ -62,6 +62,6 @@ HELP: comma-list
|
||||||
"'element' should be a parser that can parse the elements. The "
|
"'element' should be a parser that can parse the elements. The "
|
||||||
"result of the parser is a sequence of the parsed elements." }
|
"result of the parser is a sequence of the parsed elements." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: lazy-lists parser-combinators parser-combinators.simple prettyprint ;" "\"1,2,3,4\" 'integer' comma-list parse-1 ." "{ 1 2 3 4 }" } } ;
|
{ $example "USING: lists lists.lazy parser-combinators parser-combinators.simple prettyprint ;" "\"1,2,3,4\" 'integer' comma-list parse-1 ." "{ 1 2 3 4 }" } } ;
|
||||||
|
|
||||||
{ $see-also 'digit' 'integer' 'string' 'bold' 'italic' comma-list } related-words
|
{ $see-also 'digit' 'integer' 'string' 'bold' 'italic' comma-list } related-words
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2006 Chris Double.
|
! Copyright (C) 2006 Chris Double.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel strings math sequences lazy-lists words
|
USING: kernel strings math sequences lists lists.lazy words
|
||||||
math.parser promises parser-combinators unicode.categories ;
|
math.parser promises parser-combinators unicode.categories ;
|
||||||
IN: parser-combinators.simple
|
IN: parser-combinators.simple
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (c) 2007 Aaron Schaefer.
|
! Copyright (c) 2007 Aaron Schaefer.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: lazy-lists math math.primes ;
|
USING: lists lists.lazy math math.primes ;
|
||||||
IN: project-euler.007
|
IN: project-euler.007
|
||||||
|
|
||||||
! http://projecteuler.net/index.php?section=problems&id=7
|
! http://projecteuler.net/index.php?section=problems&id=7
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (c) 2007 Samuel Tardieu.
|
! Copyright (c) 2007 Samuel Tardieu.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: arrays kernel lazy-lists math.algebra math math.functions
|
USING: arrays kernel lists lists.lazy math.algebra math math.functions
|
||||||
math.order math.primes math.ranges project-euler.common sequences ;
|
math.order math.primes math.ranges project-euler.common sequences ;
|
||||||
IN: project-euler.134
|
IN: project-euler.134
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
USING: arrays combinators kernel lazy-lists math math.parser
|
USING: arrays combinators kernel lists lists.lazy math math.parser
|
||||||
namespaces parser parser-combinators parser-combinators.simple
|
namespaces parser parser-combinators parser-combinators.simple
|
||||||
promises quotations sequences combinators.lib strings math.order
|
promises quotations sequences combinators.lib strings math.order
|
||||||
assocs prettyprint.backend memoize unicode.case unicode.categories ;
|
assocs prettyprint.backend memoize unicode.case unicode.categories ;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2006, 2007 Alex Chapman
|
! Copyright (C) 2006, 2007 Alex Chapman
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel sequences math math.functions tetris.board
|
USING: kernel sequences math math.functions tetris.board
|
||||||
tetris.piece tetris.tetromino lazy-lists combinators system ;
|
tetris.piece tetris.tetromino lists lists.lazy combinators system ;
|
||||||
IN: tetris.game
|
IN: tetris.game
|
||||||
|
|
||||||
TUPLE: tetris pieces last-update update-interval rows score game-state paused? running? ;
|
TUPLE: tetris pieces last-update update-interval rows score game-state paused? running? ;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2006, 2007 Alex Chapman
|
! Copyright (C) 2006, 2007 Alex Chapman
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel arrays tetris.tetromino math math.vectors
|
USING: kernel arrays tetris.tetromino math math.vectors
|
||||||
sequences quotations lazy-lists ;
|
sequences quotations lists lists.lazy ;
|
||||||
IN: tetris.piece
|
IN: tetris.piece
|
||||||
|
|
||||||
#! A piece adds state to the tetromino that is the piece's delegate. The
|
#! A piece adds state to the tetromino that is the piece's delegate. The
|
||||||
|
|
Loading…
Reference in New Issue