math.floats.parser: new vocabulary with old string>float word

Slava Pestov 2010-02-08 08:32:13 +13:00
parent 419d954dc1
commit 9724a7d9d1
5 changed files with 28 additions and 13 deletions

View File

@ -1,8 +1,8 @@
! Copyright (C) 2008 Peter Burns, 2009 Philipp Winkler ! Copyright (C) 2008 Peter Burns, 2009 Philipp Winkler
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: arrays assocs combinators io io.streams.string json USING: arrays assocs combinators io io.streams.string json
kernel math math.parser prettyprint kernel math math.floats.parser math.parser prettyprint sequences
sequences strings vectors ; strings vectors ;
IN: json.reader IN: json.reader
<PRIVATE <PRIVATE

View File

@ -0,0 +1 @@
Slava Pestov

View File

@ -0,0 +1,14 @@
! Copyright (C) 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: alien.c-types alien.syntax ;
IN: math.floats.parser
<PRIVATE
LIBRARY: libc
FUNCTION: double strtod ( char* nptr, char** endptr ) ;
PRIVATE>
: string>float ( str -- n/f ) f <void*> strtod ;

View File

@ -1,12 +1,12 @@
! Copyright (C) 2010 Erik Charlebois ! Copyright (C) 2010 Erik Charlebois
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays assocs grouping hashtables kernel USING: accessors arrays assocs grouping hashtables kernel locals
locals math math.parser sequences sequences.deep math math.floats.parser math.parser sequences sequences.deep
specialized-arrays.instances.alien.c-types.float specialized-arrays.instances.alien.c-types.float
specialized-arrays.instances.alien.c-types.uint splitting xml specialized-arrays.instances.alien.c-types.uint splitting xml
xml.data xml.traversal math.order xml.data xml.traversal math.order namespaces combinators images
namespaces combinators images gpu.shaders io make game.models gpu.shaders io make game.models game.models.util
game.models.util io.encodings.ascii game.models.loader ; io.encodings.ascii game.models.loader ;
IN: game.models.collada IN: game.models.collada
SINGLETON: collada-models SINGLETON: collada-models

View File

@ -1,12 +1,12 @@
! Copyright (C) 2010 Erik Charlebois ! Copyright (C) 2010 Erik Charlebois
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: io io.encodings.ascii math.parser sequences splitting kernel USING: io io.encodings.ascii math.parser math.floats.parser
assocs io.files combinators math.order math namespaces sequences splitting kernel assocs io.files combinators
arrays sequences.deep accessors math.order math namespaces arrays sequences.deep accessors
specialized-arrays.instances.alien.c-types.float specialized-arrays.instances.alien.c-types.float
specialized-arrays.instances.alien.c-types.uint specialized-arrays.instances.alien.c-types.uint game.models
game.models game.models.util gpu.shaders images game.models.util gpu.shaders images game.models.loader
game.models.loader prettyprint ; prettyprint ;
IN: game.models.obj IN: game.models.obj
SINGLETON: obj-models SINGLETON: obj-models