Slava Pestov
775dbefdbc
math.parser: expose a format-float primitive for use by formatting vocabulary
2010-04-13 21:21:28 -07:00
Joe Groff
2626b61df2
math.parser: support leading + on significand and exponent so string>number can be a proper superset of C strto* functions
2010-02-07 14:21:59 -08:00
Joe Groff
dbb952889f
math.parser: fix digit> bug found by Blei
2010-02-07 13:04:20 -08:00
Slava Pestov
a50f184b18
math.parser: clean up and merge new-math-parser branch
2010-02-08 01:39:18 +13:00
Joe Groff
0683045cfd
new, faster one-pass number parser
2009-11-01 01:59:12 -05:00
Joe Groff
f1d5f6974b
remove dangling PRIVATE> from math.parser
2009-11-01 00:42:25 -05:00
Doug Coleman
82992f6dd4
reverse-here -> reverse!
2009-10-28 14:40:15 -05:00
Joe Groff
d5720a0245
add some math.parser hints that slightly improve number parsing performance
2009-10-26 17:48:05 -05:00
Joe Groff
6b1f1e8589
tighten some screws in math.parser
2009-10-22 20:48:46 -05:00
Joe Groff
419b3bca9a
speed up dec>float a little
2009-10-22 18:55:32 -05:00
Joe Groff
05adcf8e88
inline the trivial words in math.parser
2009-10-22 17:26:22 -05:00
Joe Groff
eb4d4a24da
oops, float>hex didn't preserve leading zeroes in mantissa
2009-09-20 16:48:42 -05:00
Joe Groff
aa2047e942
add a number-base configuration variable to prettyprint.config. set to 2 to print BIN:, 8 to print OCT:, 10 to print decimal, 16 to print HEX:
2009-09-14 15:03:05 -05:00
Joe Groff
b0d4051ac5
HEX: X.XXXpEEE hexadecimal float literal syntax
2009-09-11 20:11:29 -05:00
Joe Groff
0c2f6fd63c
let's not forget about hex literals
2009-09-01 21:28:23 -05:00
Joe Groff
64d2459dac
require numeric literals to begin and end with a digit/decimal point so that stuff like "," and "1," don't parse as numbers
2009-09-01 21:14:26 -05:00
Joe Groff
4033e46800
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-14 10:55:05 -04:00
Doug Coleman
1797f389f8
add if-zero/when-zero/unless-zero to core/ and update usages
2009-08-11 17:59:40 -05:00
Joe Groff
ddaa99ba89
allow commas in numeric literals
2009-08-10 19:33:27 -04:00
Slava Pestov
dbd4b8ddb8
Fix test failures
2009-05-04 13:10:56 -05:00
Slava Pestov
4d438a3edd
Remove cruddy string encoding/decoding code from VM
2009-05-02 13:45:38 -05:00
Slava Pestov
cb6f59ff5b
Fix unit test failure in math.parser
2009-04-13 20:25:55 -05:00
Slava Pestov
0fda643ab1
Optimizing string>number
2009-04-11 20:30:51 -05:00
Slava Pestov
cd53c2bd37
produce and produce-as: don't need third quotation either
2009-02-28 15:31:34 -06:00
Doug Coleman
0e14f767ee
core: swap 3append -> glue
2008-12-03 19:12:48 -06:00
Slava Pestov
a4d9cdfeb3
Refactor all usages of >r/r> in core to use dip, 2dip, 3dip
...
Non-optimizing compiler now special-cases dip, 2dip, 3dip following a
literal quotation: this allows us to break the dip/slip meta-circle
without explicit calls to >r/r>
2008-11-23 02:44:56 -06:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
21c621d464
Fix erg's ratio bug
2008-09-30 18:28:11 -05:00
Slava Pestov
f5acf7e3d6
Rice
2008-09-27 17:54:44 -05:00
Slava Pestov
44f53de164
Move make to its own vocabulary, remove fry _ feature
2008-09-10 20:07:00 -05:00
U-SLAVA-DFB8FF805\Slava
cead05c5d2
Workaround Windows libc bug (?)
2008-08-22 00:32:37 -05:00
Slava Pestov
95657e5742
Remove some funny retain stack usage
2008-08-18 20:13:24 -05:00
Slava Pestov
35bd2abc71
Fix more math.parser stuff
2008-07-20 04:05:09 -05:00
Slava Pestov
89d3c0c616
Fix negative zero
2008-07-20 00:56:25 -05:00
Slava Pestov
9dd5c9919f
Mandatory stack effect annotations
2008-06-08 15:32:55 -05:00
Slava Pestov
91ef98cc70
math.parser fix
2008-05-05 18:09:44 -05:00
Doug Coleman
bced4022e5
updating usages of cond/case
2008-04-11 12:53:22 -05:00
Slava Pestov
2ecd1ba127
Improve ratio syntax
2008-02-10 01:40:17 -06:00
Slava Pestov
2541c62e29
Fix code for math.parser changes
2008-02-06 21:15:47 -06:00
Slava Pestov
f3c8bd266b
Improved syntax for ratios
2008-02-06 20:05:03 -06:00
Slava Pestov
2ef76798b0
record1 strings
2008-01-31 23:00:08 -06:00
Slava Pestov
a96457cecc
Initial import
2007-09-20 18:09:08 -04:00