Commit graph

498 commits

Author SHA1 Message Date
Kris Katterjohn
93ec1b0875 Remove duplicate sys/sysctl.h inclusion 2019-03-10 14:08:35 -05:00
Alex Shinn
bd78ebeed7 updating sign-rule to respect finalized SRFI 159 2019-03-10 14:50:44 +08:00
Alex Shinn
7380564933 inserting commas in numerator and denominator separately for rationals 2019-02-28 00:09:08 +08:00
Alex Shinn
4c5bdcb22c allowing strings for decimal-sep; s/fn-fork/forked/g 2019-02-27 23:59:10 +08:00
Alex Shinn
2c3dfbd295 fixing default padding/trimming to be left, matching the spec (from SRFI 13 convention) 2019-02-27 22:52:18 +08:00
Alex Shinn
a5a7345df9 add 0085 (NEXT LINE) to char-set:whitespace (fixes #515 2019-02-10 22:36:23 +08:00
Alex Shinn
017bb1c2a0 adding -Dsafe-string-cursors feature to perform extra checks on string cursors 2019-02-01 00:31:13 +08:00
Alex Shinn
ef0a8bd199 restoring efficient read-line 2019-01-27 22:10:35 +08:00
Alex Shinn
afd887e672 update-repository shouldn't exit 2019-01-11 08:48:45 +08:00
Alex Shinn
003d3d3328 clarifying default config params for http-server 2019-01-06 08:45:48 +08:00
Alex Shinn
ec0b6e98f6 also print error 2019-01-06 08:22:43 +08:00
Alex Shinn
c3189ebc9d warn when config fails to load 2019-01-06 08:19:43 +08:00
Alex Shinn
5f80618544 make-conf should validate it gets an alist 2019-01-04 01:53:49 +08:00
Alex Shinn
c9b4786648 fix default chibi.net.http-server file server for paths other than . 2019-01-03 07:39:08 +08:00
Alex Shinn
336a69a416 -R needs interpreter name, not SRFI 22 2019-01-01 23:18:49 +08:00
Alex Shinn
b782ee575b removing duplicate revomal of program-name in (chibi app) 2018-12-28 23:48:13 +08:00
Alex Shinn
ec345fe370 typo, export ellipsis-identifier? 2018-12-28 23:40:26 +08:00
Alex Shinn
c250685607 updating names of core types in (chibi ast) docs after switching to upper-case (fixes issue #505) 2018-12-17 01:11:27 +08:00
Edwin Watkeys
c912f1e24f fix order of arguments to parse-fold 2018-12-11 12:46:42 +01:00
Alex Shinn
06c27d81ce command-line shouldn't include interpreter name (fixes issue #484) 2018-12-10 23:44:39 +08:00
Marc Nieper-Wißkirchen
d2fbd59ae5 Export ellipsis-identifier? 2018-12-09 19:06:24 +01:00
Marc Nieper-Wißkirchen
5d978dd37b Implement with-ellipsis 2018-12-09 19:05:22 +01:00
Alex Shinn
2c37dfedd3
Merge pull request #500 from mnieper/syntax-case
Implement syntax-case
2018-12-09 04:08:31 +08:00
Alex Shinn
77a6ca8ea7 supporting ber encoding in bytevectors 2018-12-09 03:44:19 +08:00
Alex Shinn
3aae0e8481 supporting non-native endianness and non-finite floating values 2018-12-06 23:25:18 +08:00
Marc Nieper-Wisskirchen
5c963df96f Move datum->syntax back to init-7.scm. Don't crash when renamer not present in syntactic closure. 2018-12-05 15:59:39 +01:00
Alex Shinn
d513bdc977 adding floating point utils for bytevectors 2018-12-04 00:43:08 +08:00
Alex Shinn
11ccfcb5de support exact scaling of bignum literals via moderate sized exponents 2018-12-03 23:05:00 +08:00
Marc Nieper-Wisskirchen
152b20f244 Implement syntax-case 2018-12-01 13:48:25 +01:00
Alex Shinn
5bbef040c5 BSD portability fixes from Taylor Campbell 2018-11-27 23:01:23 +08:00
Alex Shinn
b5331233cb adding missing status response in http-send-directory (thanks to Martin Hayman) 2018-11-19 22:06:43 +08:00
Alex Shinn
3f9dfb7837 fixing call to call-with-temp-file for HEAD requests 2018-11-06 15:09:18 +08:00
Edwin Watkeys
cbe1b045b4 add history documentation 2018-10-31 14:51:49 -04:00
Edwin Watkeys
5bcd37477f add history support as $0...9 2018-10-31 13:12:30 -04:00
Alex Shinn
a7584ae647 allow zero-or-more (*) combining characters in the 'grapheme SRE rather than one-or-more (+) 2018-09-18 23:21:27 +08:00
Alex Shinn
f5a228ee9e fixing bug in flushed output on custom ports 2018-06-23 19:21:38 +08:00
Bertrand Augereau
ce9c60c1e8 Fix (expt 3 -1) when SEXP_USE_BIGNUMS 2018-06-16 09:41:09 +02:00
Bertrand Augereau
4d8933119f Test that (expt bignum -k) is correct 2018-06-10 03:20:35 +02:00
Alex Shinn
72de3ba12f exit codes should be exact (issue #467) 2018-04-05 22:11:05 +09:00
okuoku
583c45a6c1 test: Do not create file under /tmp in show-test
Do not create test file under /tmp as it might break
concurrent builds. Creating file on the current directory should
suffice.
2018-04-04 05:27:03 +09:00
Alex Shinn
060cfd550e
Merge pull request #465 from jimrees/master
changes from jim rees
2018-04-01 15:32:32 +09:00
Jim Rees
9b72412e4e Added additional show-tests which demonstrate recent bugs & fixes. 2018-03-27 14:47:14 -04:00
Jim Rees
b3100857fd Fixed escaped to support the documented double-quoting functionality
when esc-char is #f.
2018-03-26 06:44:37 -04:00
Jim Rees
88e8d89460 Fixed integer-log-base to use exact arithmetic so rounding doesn't cause
a wrong result to things like (numeric (- (* 36 36 36) 1) 36).

Fixed a bug in numeric that caused comma-sep and dec-sep to get
initialized wrongly.

Fixed maybe-trim-zeros to leave behind at least a ".0" on
inexact numbers that otherwise would have been output without
the decimal point.  This is for consistency with number->string
which is used when the radix is 10.

In gen-general, fixed a bug in the digit-generating loop for the
whole part of the number.  Previously, an integer that should
have looked like 5003 would be emitted as 5300.

Switched the order of application of maybe-round and
maybe-trim-zeros so that a number that should round to
.0000000000000001 doesn't get emitted as 0.1.

In gen-positive-real, fixed the ratio case to not call
number->string with a radix that might not be in {2,8,10,16}.

Also in gen-positive-real, fixed the call to number->string to
include the radix which was missing previously.

Fixed wrap-sign to correctly handle the case of -0.0.

In numeric/si, always emit the supplied separator even if the
number is too small for an SI-suffix to be emitted.  The
examples in the SRFI document depend on this.
2018-03-23 12:22:03 -04:00
Jim Rees
406aacf4dd try-fitted2/output* calls output on the argument string if it's
determined the string will not exceed the column width.  But
output is the caller environment's output state variable.  A
better choice is output-default.

In two places (length+ form) is replaced with (or (length+ form) +inf.0)
so that arithmetic can be performed on the result.

To support cyclic structures in pretty-simply (wrapped with
trimmed/lazy), the call-with-output form in pp-with-indent needs to be
wrapped with an appropriate trimmed/lazy.

In pp-pair, call (pp (car ls)) instead of (pretty (car ls)).

In pretty-simply, don't use call-with-output, that prevents
(trimmed/lazy n (pretty-simply ...)) from working at all on cyclic
input.
2018-03-22 11:06:55 -04:00
Jim Rees
b947e4ef47 Fixed trivial bug in padded/both where the "odd space" was being emitted
on the left rather than the right as specified.

Fixed trivial bug in padded/left where a string longer than the provided
width would result in a call to make-string with a negative length.

Fixed trivial bug in trimmed/lazy around an fn-binding for the output
state variable.
2018-03-22 10:41:52 -04:00
Jim Rees
ece2d470c3 Fixed from-file so that it produces more than just one line of output. 2018-03-22 09:50:34 -04:00
Alex Shinn
933aeb5654 tests which expect an inexact value can accept an equivalent exact value 2018-03-17 16:50:41 +09:00
Alex Shinn
f0c9f0e705 adding chibi-version variable to (chibi ast) 2018-03-11 23:47:33 +09:00
Alex Shinn
cd0b6e32af fixing test-build 2018-01-25 01:07:49 +09:00