Commit Graph

698 Commits (0cfc48479eeba37185b3ec187277ef6bf413eb8f)

Author SHA1 Message Date
Alexander Iljin 0007789795 continuations[-docs]: add the finally word 2019-04-22 21:57:51 -07:00
John Benediktsson c228aaf836 io.backend: remove comment from years ago. 2019-03-22 20:36:45 -07:00
Doug Coleman db9386d4c3 io.pathnames: Fix using list. 2018-07-07 12:09:02 -05:00
Doug Coleman 3ac520a8ec io.pathnames: Add canonicalize-path.
The idea is to make a canonical representation of any path, taking into
account . and .. and unicode-prefix on Windows.

The use case is in a shell you have a current-directory and you can do
crazy commands like ``cd ../foo/bar/baz/../.././././`` and get the
canonical/shortened directory name. You can also use this word to
compare if two paths are the same.
2018-07-07 11:59:59 -05:00
Doug Coleman 147d13ed19 io.pathnames: Add a useful word 3append-path 2018-07-04 18:29:17 -05:00
Doug Coleman 9f213f96f6 core: Add the shuffler words but without primitives.
The nipd branch slowed bootstrap by a minute, this patch does not.

sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
John Benediktsson 0ab7ed6979 io.encodings: use new latin1 instead of 8-bit encoding from file. 2018-02-28 08:56:01 -08:00
John Benediktsson 85b69b5b49 io.encodings.8-bit: more encodings, and reduce hierarchy. 2018-02-26 10:21:35 -08:00
John Benediktsson 6073e211ee io.streams.byte-array: implement stream-tell for byte-vector. 2018-02-21 15:05:20 -08:00
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
Alexander Iljin 504c9959a1 Update some copyright headers to follow the current convention
Had to look through the history to find years for some headers. Added
authors to some files as well.
2017-09-11 15:43:03 -07:00
Björn Lindqvist 134a9fbcb4 VM: we can save the process by throwing a normal error here 2017-06-25 01:43:31 +02:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Doug Coleman 7c7bb93c55 factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
2017-06-01 13:58:58 -05:00
Doug Coleman 5aa89e6251 factor: Add newlines to every line. 2017-06-01 13:46:32 -05:00
John Benediktsson 09f11e293a io: fix stream-copy docs. 2017-01-24 20:40:29 -08:00
Björn Lindqvist 3bbf421043 io.files: the paths are absolute so cwd prepend-path isn't needed 2016-09-14 14:02:11 +02:00
John Benediktsson acb4dec55d Revert "io.pathnames: fix separator when appending paths in Windows"
This reverts commit b477c43293.
2016-08-23 09:54:16 -07:00
masweeney b477c43293 io.pathnames: fix separator when appending paths in Windows 2016-08-23 08:53:38 -07:00
John Benediktsson 8d077a96ad using [ ... ] [ drop ] if* instead of dup [ ... ] [ 2drop ] if. 2016-07-11 21:01:03 -07:00
John Benediktsson 5abccb1391 io.backend: remove unused normalize-directory word. 2016-06-30 14:11:24 -07:00
John Benediktsson e146309a0c io.encodings.binary: move to core. 2016-06-30 12:30:58 -07:00
Alexander Iljin b8476d7081 io.streams-docs: fix some copy-paste errors 2016-05-25 11:38:28 +03:00
John Benediktsson 20224d6aaa io.files: fix cd test on windows (needs normalize-path instead of absolute-path). 2016-04-09 10:25:10 -07:00
Doug Coleman 2ada639a62 io.files: Make sure ascii can't write higher than char 127 to file. Allow writes to ascii from { } and B{ } if they don't violate the encoding. 2016-04-07 12:51:30 -07:00
Doug Coleman 2f4f0da10d io.files: Ensure that slices can be written to utf8/utf16/ascii streams. 2016-04-07 12:42:52 -07:00
John Benediktsson 6d417f4f71 io.encodings: a bit faster and make ascii support slices. 2016-04-07 12:32:05 -07:00
John Benediktsson 0988df1e5a io.encodings: allow encode-string to be called with non-strings. 2016-04-07 12:17:00 -07:00
John Benediktsson 2269b07d33 use with-temp-file and with-temp-directory in some tests. 2016-04-04 10:33:03 -07:00
Doug Coleman 180a0be647 io.encodings.utf16n: Fix using. 2016-03-30 21:25:44 -07:00
Doug Coleman c133c16377 core: Trim using lists from -tests and clean up a few irregularities. 2016-03-30 18:43:41 -07:00
Doug Coleman 80d0baaa7d io.files: make tests not use temp-file 2016-03-30 17:31:32 -07:00
Doug Coleman 9e9b7fe367 io.streams.c: use unique-file 2016-03-30 17:31:32 -07:00
Doug Coleman fe7d6ea76e io.pathnames: don't use temp-file 2016-03-30 17:31:32 -07:00
John Benediktsson 267706c4d6 io.encodings: add a test that tell doesn't work anymore. 2016-03-30 15:19:04 -07:00
John Benediktsson 48b3ec47f7 Revert "io.encodings: Add a stream-tell method for decoder streams."
This reverts commit 417b8abbeac013e20b2b360aa215c38604bd18fc.
2016-03-30 15:16:19 -07:00
Doug Coleman 9db94d33d6 io.streams.sequence: make some errors into ERROR:. rename double paren word. 2016-03-25 03:13:27 -07:00
John Benediktsson baae677276 io.files.unique: change to create unique files and directories relative to the current-directory. 2016-03-18 10:57:54 -07:00
John Benediktsson 35ca557ce7 core: use $sequence help-markup in a few places. 2016-03-16 10:13:56 -07:00
John Benediktsson 497f8cb514 Update tests for LICENSE.txt rename. 2016-03-16 10:13:56 -07:00
John Benediktsson b75def3bfb hashtables: remove 2hashtable (not really used). 2016-03-03 14:38:16 -08:00
Doug Coleman 9c4ed3ddae core: Don't use with-scope. H{ } clone [ ] with-variables is the same thing and is more explicit. 2016-03-02 17:18:42 -08:00
John Benediktsson 3affad7681 docs: using $maybe. 2015-12-11 17:05:45 -08:00
Björn Lindqvist 9d95602591 io.encodings: doc fix 2015-12-08 04:21:32 +01:00
Björn Lindqvist 74cb1acd17 Docs: more docs for vocabs in core/ 2015-12-05 16:34:46 +01:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
Björn Lindqvist a2e8af2581 io.files: command line params is in the system's native encoding 2015-08-24 07:23:40 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman 02008979d9 factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon. 2015-08-12 15:26:18 -05:00