extra: fix word/syntax
parent
9de4592de5
commit
63837139cd
|
@ -1,10 +1,10 @@
|
||||||
! Copyright (C) 2017 Doug Coleman.
|
! Copyright (C) 2017 Doug Coleman.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays assocs combinators.short-circuit
|
USING: accessors arrays assocs combinators.short-circuit
|
||||||
constructors continuations fry io io.encodings.utf8 io.files
|
constructors continuations io io.encodings.utf8 io.files
|
||||||
io.streams.string kernel modern modern.paths modern.slices
|
io.streams.string kernel modern modern.paths modern.slices
|
||||||
multiline namespaces prettyprint sequences sequences.extras
|
prettyprint sequences sequences.extras splitting strings
|
||||||
splitting strings ;
|
vocabs.loader ;
|
||||||
IN: modern.out
|
IN: modern.out
|
||||||
|
|
||||||
: token? ( obj -- ? )
|
: token? ( obj -- ? )
|
||||||
|
@ -53,7 +53,7 @@ DEFER: map-literals
|
||||||
utf8 [ write-literal nl ] with-file-writer ; inline
|
utf8 [ write-literal nl ] with-file-writer ; inline
|
||||||
|
|
||||||
: write-modern-vocab ( seq vocab -- )
|
: write-modern-vocab ( seq vocab -- )
|
||||||
modern-source-path write-modern-path ; inline
|
vocab-source-path write-modern-path ; inline
|
||||||
|
|
||||||
: rewrite-path ( path quot: ( obj -- obj' ) -- )
|
: rewrite-path ( path quot: ( obj -- obj' ) -- )
|
||||||
! dup print
|
! dup print
|
||||||
|
@ -77,7 +77,7 @@ DEFER: map-literals
|
||||||
[ path>literals ] [ ] bi write-modern-path ;
|
[ path>literals ] [ ] bi write-modern-path ;
|
||||||
|
|
||||||
: rewrite-vocab-exact ( name -- )
|
: rewrite-vocab-exact ( name -- )
|
||||||
modern-source-path rewrite-path-exact ;
|
vocab-source-path rewrite-path-exact ;
|
||||||
|
|
||||||
: rewrite-paths ( paths -- )
|
: rewrite-paths ( paths -- )
|
||||||
[ rewrite-path-exact ] each ;
|
[ rewrite-path-exact ] each ;
|
||||||
|
@ -85,7 +85,7 @@ DEFER: map-literals
|
||||||
|
|
||||||
: strings-core-to-file ( -- )
|
: strings-core-to-file ( -- )
|
||||||
core-bootstrap-vocabs
|
core-bootstrap-vocabs
|
||||||
[ ".private" ?tail drop modern-source-path utf8 file-contents ] map-zip
|
[ ".private" ?tail drop vocab-source-path utf8 file-contents ] map-zip
|
||||||
[ "[========[" dup matching-delimiter-string surround ] assoc-map
|
[ "[========[" dup matching-delimiter-string surround ] assoc-map
|
||||||
[
|
[
|
||||||
first2 [ "VOCAB: " prepend ] dip " " glue
|
first2 [ "VOCAB: " prepend ] dip " " glue
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
! Copyright (C) 2013, 2016 Björn Lindqvist
|
! Copyright (C) 2013, 2016 Björn Lindqvist
|
||||||
! See http://factorcode.org/license.txt for BSD license
|
! See http://factorcode.org/license.txt for BSD license
|
||||||
USING: accessors alien alien.accessors alien.c-types alien.data
|
USING: accessors alien alien.accessors alien.c-types alien.data
|
||||||
alien.enums alien.strings arrays assocs combinators fry
|
alien.enums alien.strings arrays assocs combinators
|
||||||
io.encodings.string io.encodings.utf8 kernel literals math
|
io.encodings.string io.encodings.utf8 kernel literals math
|
||||||
math.bitwise math.parser pcre.ffi regexp sequences splitting strings ;
|
math.bitwise math.parser pcre.ffi regexp sequences splitting
|
||||||
|
strings ;
|
||||||
IN: pcre
|
IN: pcre
|
||||||
|
|
||||||
ERROR: bad-option what ;
|
ERROR: bad-option what ;
|
||||||
|
@ -149,7 +150,7 @@ M: compiled-pcre findall
|
||||||
M: string findall
|
M: string findall
|
||||||
<compiled-pcre> findall ;
|
<compiled-pcre> findall ;
|
||||||
|
|
||||||
M: regexp:regexp findall
|
M: regexp::regexp findall
|
||||||
raw>> findall ;
|
raw>> findall ;
|
||||||
|
|
||||||
: matches? ( subject obj -- ? )
|
: matches? ( subject obj -- ? )
|
||||||
|
|
Loading…
Reference in New Issue