Commit Graph
266 Commits
Author SHA1 Message Date
Thorbjørn Lindeijer f5d9443d0a Added Sequence.take and Sequence.skip
These lazy iterator producing methods are useful when working with
arbitrary sequences and you need to skip or take some number of elements
at the start.
2017-02-10 21:43:59 +01:00
Bob Nystrom 4fe3ad3f8b Docs for Num.log and Num.pow(). 2017-01-20 07:24:46 -08:00
Bob Nystrom 479ca7ec6d Improve explanation of single-expression blocks.
Fix #390.
2017-01-12 11:05:03 -08:00
Bob Nystrom 0a2bc4a8a7 More copy editing. 2017-01-12 07:11:01 -08:00
Bob Nystrom fc6a7e5d18 Tweak some docs a little. 2017-01-12 07:10:19 -08:00
Bob Nystrom 09ef904d32 Use DBL_MIN instead of DBL_EPSILON for Num.smallest. 2016-08-27 17:25:32 -07:00
Bob Nystrom b8b0f36521 Merge branch 'num-properties' of https://github.com/Nelarius/wren into Nelarius-num-properties 2016-08-27 17:18:21 -07:00
Bob Nystrom 0a4f1b370c Revise embedding docs a bit. 2016-08-26 07:11:50 -07:00
Johann Muszynski 6ee1743429 Update Num class doc 2016-08-04 21:17:45 +03:00
Bob Nystrom 500c7b0426 Add List constructors to docs. 2016-08-04 06:28:41 -07:00
Bob Nystrom 6845328661 Tweak String.indexOf(_,_) a bit.
- Simplify the arithmetic a little in wrenStringFind().
- Allow the start to be negative.
- Even more tests.
- Docs.
2016-08-03 22:19:34 -07:00
Johann Muszynski d192a9a02d Add doc mention of new Num properties 2016-07-10 23:26:23 +03:00
Bob Nystrom 8657a42c21 Merge pull request #366 from underscorediscovery/patch-2
fix range docs to introduction
2016-05-27 07:23:41 -07:00
Bob Nystrom 78deace9a4 Merge pull request #365 from underscorediscovery/patch-1
docs; iterator protocol link relative to core/ not modules/
2016-05-27 07:23:07 -07:00
Bob Nystrom 2b0878ec6d Platform.isWindows. 2016-05-21 12:53:21 -07:00
Bob Nystrom 6002cc4d65 Add Stdin.isTerminal. 2016-05-21 12:51:11 -07:00
Bob Nystrom 06731f66d4 Add a Platform class.
- Rename the "process" module to "os".
- Add Platform to it.
- Static "name" method.
- Static "isPosix" method.
- Docs and tests!
2016-05-21 12:44:17 -07:00
Bob Nystrom 0a060a9678 WrenValue -> WrenHandle. 2016-05-20 20:55:28 -07:00
Sven Bergström 5a8cacfbe4 fix range docs to introduction
Is that the link that was intended?
2016-05-21 00:24:41 -02:30
Sven Bergström b57fd6431a iterator protocol relative to core/ not modules/ 2016-05-21 00:21:47 -02:30
Bob Nystrom 5d98d20175 Add Stdin.isRaw. 2016-05-20 15:19:18 -07:00
Bob Nystrom 500dd41ccd Add Stdin.readByte(). 2016-05-20 11:50:14 -07:00
Bob Nystrom 872cfdcd42 Mention the subreddit on the community docs.
Fix #360.
2016-05-20 10:02:57 -07:00
Bob Nystrom 1d252d1970 First draft of docs for calling Wren from C. 2016-05-19 16:01:54 -07:00
Bob Nystrom d64af5d6a5 Fix output formatting in Firefox. 2016-05-19 09:30:38 -07:00
Bob Nystrom befe90501b Start writing comprensive embedding docs.
- Break embedding out into a separate section with multiple pages.
- Document the constraints on the API.
- Document the slot array and WrenValue.

Still lots more to do, but getting there...
2016-05-16 08:09:14 -07:00
Rob Warner 23b5dc25de Fix typo 2016-05-04 13:17:20 -04:00
Rob Warner d4662ebdfc Fix typo 2016-05-03 14:43:59 -04:00
Bob Nystrom 94eb22cd9d Merge pull request #348 from crimsun/patch-1
Clarified grammatical inversion
2016-05-02 21:54:42 -07:00
Bob Nystrom 020b1b7661 Merge branch 'master' of https://github.com/munificent/wren 2016-05-02 16:23:56 -07:00
Bob Nystrom 1f37068b39 Oops, correct year that C++ was standardized. 2016-05-02 16:23:08 -07:00
Dan Chen 2132f15f9e Clarified grammatical inversion 2016-05-02 02:39:11 +04:30
Ian Mackenzie 95da4f90b9 Fix small typo in method call documentation 2016-04-15 15:16:24 +10:00
Bob Nystrom fb0e01bfe9 Fix some nits in the FAQ. 2016-03-07 07:41:00 -08:00
Bob Nystrom 1e4b9e5175 File.realPath().
Not tested yet, because we can't create symlinks from Wren and I don't
want to check symlinks into the repo, but it seems to do the right
thing.
2016-02-27 15:53:02 -08:00
Bob Nystrom e6b48de598 Fix precedence table in docs.
It was out of sync with the actual implemented precedence in a few
places.
2016-02-27 10:14:09 -08:00
Bob Nystrom 919605b7ba Couple of tiny tweaks. 2016-02-24 06:52:12 -08:00
Bob Nystrom 2c4e497c54 Fix a couple of doc bugs. 2016-02-22 07:48:53 -08:00
Bob Nystrom 60162575ee More file system checking functions:
- Stat#isFile
- Stat#isDirectory
- Directory.exists()
- File.exists()
2016-02-21 12:23:33 -08:00
Bob Nystrom 8e90e3577b More file IO!
Can now create, delete, and write to files.
2016-02-20 09:23:42 -08:00
Mathieu Gagnon ff69b12c2c Fix sample in doc/site/error-handling
Add missing constructor.
2016-02-11 18:06:51 -05:00
Mathieu Gagnon a2e03279e2 Fix abs code sample in doc/site/modules/core/num
-123.abs returns -123 because the dot has higher precedence so it's
 really -(123.abs).
2016-02-11 17:58:09 -05:00
Bob Nystrom 68ab4e88c0 Merge branch 'master' of https://github.com/munificent/wren 2016-02-09 07:24:55 -08:00
Bob Nystrom 8b36e2f00b Add sample(_) and sample(_,_) to Random. 2016-02-09 07:24:45 -08:00
Mathieu Gagnon 82307232cc Update wrenInterpret doc/site/embedding-api 2016-02-08 08:34:56 -05:00
Bob Nystrom d4a4b26203 Add Random.shuffle(). 2016-02-07 10:38:39 -08:00
Bob Nystrom 79558d95e5 Move File.stat() -> Stat.path().
Thanks, Michel!
2016-02-07 09:56:16 -08:00
Bob Nystrom ffb5ada9fb Move the community docs to the wiki. 2016-01-24 15:39:35 -08:00
Bob Nystrom 71e2458a6c Add API for accessing command-line arguments.
- Add process module with Process class.
- Add "arguments" and "allArguments" methods.
- Docs for same.
- Support passing additional arguments to command line.
- Add "--help" support to command line.
2016-01-22 07:57:26 -08:00
Bob Nystrom 056ae61493 Tweak some docs. 2016-01-21 21:38:27 -08:00