Commit Graph

534 Commits

Author SHA1 Message Date
82740d2668 Add a test demonstrating folding order 2015-01-16 09:48:59 +01:00
4bc06a3acc Add reduce test for ranges 2015-01-16 09:33:23 +01:00
d764581a3d Add test for empty reduce 2015-01-16 09:29:45 +01:00
5cfb638fd1 Use @munificent's single-argument reduce 2015-01-16 09:26:19 +01:00
5a7b70d45c Add documentation for reduce 2015-01-16 09:24:59 +01:00
4c6b819ed1 Add reduce function on Sequence 2015-01-16 09:24:59 +01:00
64c2bd7633 Make all types support "!" so "if (!foo)" works reliably for all objects. 2015-01-15 21:50:01 -08:00
94259fac8a Merge branch 'master' of https://github.com/munificent/wren 2015-01-15 21:17:45 -08:00
8651d9c12a Merge branch 'cpp'
Conflicts:
	src/wren_vm.c
2015-01-15 21:17:08 -08:00
93a4dd1b64 Update docs to mention compiling as C++. 2015-01-15 21:15:21 -08:00
6e369fc639 Finish making Wren compile as C++98.
- Get Value, the hard part, compiling as C++.
- Add some rudimentary C++ support to the makefile, mainly for testing.
2015-01-15 21:12:51 -08:00
4bd2c949e1 Merge pull request #113 from gsmaverick/fix-all-docs
Fix all docs
2015-01-15 20:38:00 -08:00
d3e4ac1745 Add myself to AUTHORS. 2015-01-15 19:06:24 -08:00
2ddf0a9586 Fix some overlooked references to forall. 2015-01-15 19:05:58 -08:00
0dec887a2f Fix interpreter loop when computed gotos are disabled. 2015-01-15 16:22:55 -08:00
3a2432eef7 Get value compiling as C++. 2015-01-15 16:21:14 -08:00
89a6ed9687 Get vm compiling as C++. 2015-01-15 16:02:38 -08:00
08263e3676 Get debug and utils compiling as C++. 2015-01-15 16:00:51 -08:00
e3ccb68c79 Get main.c and compiler compiling as C++. 2015-01-15 15:59:14 -08:00
4249f92571 Rename tests. 2015-01-15 06:54:16 -08:00
78e99c6c99 Merge branch 'list-forall' of git://github.com/gsmaverick/wren into gsmaverick-list-forall 2015-01-15 06:52:43 -08:00
b829ce67af Rename forall to all. 2015-01-14 23:19:31 -08:00
7ce4f20533 Merge branch 'nonlocal-names' 2015-01-14 23:08:34 -08:00
c50e46725f Implicitly define nonlocal names.
If a capitalized name cannot be resolved, a new top-level
variable with its name is implicitly declared. If a real
definition is not found later, a compile time error is raised.

Mutual recursion at the top level works now!

Fix #101. Fix #106.
2015-01-14 23:08:25 -08:00
74a7ac6b95 Update DeltaBlue to use nonlocal name. 2015-01-14 23:03:17 -08:00
f2b334d7d2 Add more forall test cases. 2015-01-14 22:51:34 -08:00
15561be89b Don't check against other keywords once we find a match. Fix #110. 2015-01-14 06:46:02 -08:00
7716ad6263 Adds forall method on Sequences. 2015-01-13 23:47:01 -08:00
a8e2ba233c Add support for "nonlocal" (capitalized) names, and change how variable lookup works.
Inside a method, all local variable lookup stops at the method boundary. In other
words, methods, do not close over outer local variables.

If a name is not found inside a method and is lowercase, it's a method on this.
If it's capitalized, it's a global variable.
2015-01-13 21:36:42 -08:00
9cb414d63b Merge branch 'master' of https://github.com/munificent/wren 2015-01-13 06:42:35 -08:00
b4495736ed Don't have a semicolon at the end of the template 2015-01-12 20:16:06 -06:00
39e5aea77c Merge pull request #104 from zeckalpha/typos
Typos
2015-01-12 16:58:05 -08:00
0c6d192ace bretheren > brethren 2015-01-12 17:39:41 -06:00
1c9520020e unvalid > invalid 2015-01-12 17:27:35 -06:00
ca93578696 Missing semicolons.
I'm unsure about the one inside the macro, but the other ones were making my syntax highlighting break.
2015-01-12 17:24:05 -06:00
12b8168b94 Merge pull request #103 from pwoolcoc/add-debugging-symbols
Allow better debugging
2015-01-12 07:32:21 -08:00
d74e11b80e Allow better debugging
This will ensure that we have better output when running `wren` under
{g,ll}db.
2015-01-12 10:01:34 -05:00
1d9445d9bc Tests for IO.read(). 2015-01-11 21:47:29 -08:00
7a7c7a8fad Merge branch 'add-read-string' of git://github.com/pwoolcoc/wren into pwoolcoc-add-read-string
Conflicts:
	builtin/io.wren
	src/wren_io.c
2015-01-11 20:05:52 -08:00
73b041a78a Merge branch 'master' of git://github.com/Alek900/wren into Alek900-master
Conflicts:
	src/wren_compiler.c
2015-01-11 20:01:30 -08:00
21e740d5c3 Test that carriage returns are treated like whitespace. 2015-01-11 19:58:30 -08:00
ad6d350140 Merge branch 'master' of https://github.com/munificent/wren 2015-01-11 19:53:17 -08:00
3feb72041e Tweak style a bit. 2015-01-11 19:52:59 -08:00
ab1c5aca0c Merge branch 'Fix-CRLF-bug' of git://github.com/elder-george/wren into elder-george-Fix-CRLF-bug 2015-01-11 19:52:08 -08:00
e07156d9e2 Merge pull request #74 from tamc/document-inheritance-from-builtins
Added documentation about issue #70 - can't inherit from built-ins
2015-01-11 19:50:39 -08:00
650a70b9a3 Merge pull request #96 from zeckalpha/feature/set-example_updated_syntax
Set example updated syntax
2015-01-11 19:50:07 -08:00
6bd245b4b2 Tweak comment. 2015-01-11 19:44:35 -08:00
be0032cc40 Merge branch 'segfault_on_top_level_super_with_no_args' of git://github.com/zeckalpha/wren into zeckalpha-segfault_on_top_level_super_with_no_args 2015-01-11 19:42:26 -08:00
bc29e0929e Rename a couple of files and tweak some docs. 2015-01-11 19:13:15 -08:00
7557c91b3c Adds some common methods to strings. 2015-01-11 16:06:56 -08:00