1
0
forked from Mirror/wren
Commit Graph

365 Commits

Author SHA1 Message Date
d338ef2f07 Finish fiber docs. 2014-04-19 20:33:49 -07:00
3087daaece Add a closure test. 2014-04-19 17:48:06 -07:00
09c707e16a More tests for super calls. 2014-04-19 11:51:36 -07:00
48dab5323d A few small cleanups. 2014-04-19 11:44:51 -07:00
05717e763d Move tests to right directory. 2014-04-19 11:41:21 -07:00
c21821e161 Merge branch 'redesign' 2014-04-16 08:00:42 -07:00
2567c4846e Redesign site. 2014-04-16 08:00:15 -07:00
6677bde98c Tweak fiber docs a bit. 2014-04-15 06:47:16 -07:00
f03895b17e Symmetric coroutines! 2014-04-14 07:23:05 -07:00
cd75e17f0d Docs docs docs. 2014-04-11 10:45:20 -07:00
634e4396cb Start working on a responsive design for the site. 2014-04-11 10:44:33 -07:00
1cd73e60da Write "Getting Started" page. 2014-04-09 07:53:30 -07:00
7393e12555 Allow multiple arguments to IO.print(). 2014-04-09 07:48:35 -07:00
dfe65305c3 Update delta_blue benchmark to new setter syntax. 2014-04-08 21:40:31 -07:00
b2941cbbb6 Docs for operators and some other stuff. 2014-04-08 21:18:17 -07:00
3a55acfe1a Test string concatenation. 2014-04-08 21:17:49 -07:00
dca58ff747 Require parentheses around operator and setter arguments. 2014-04-08 17:54:37 -07:00
45701692af Bring some more blue back into the stylesheet. 2014-04-08 07:46:47 -07:00
f6dd88937b Support "new" on lists. 2014-04-08 07:31:23 -07:00
49feeae99c Inline wrenIsBool and wrenObjectType.
Gives a significant perf boost:

binary_trees  3411  0.29s  107.72%
delta_blue    6762  0.15s  103.54%
fib           3061  0.33s  113.44%
for           6516  0.15s  106.76%
method_call   4564  0.22s   99.64%
2014-04-08 07:17:25 -07:00
6b1b1083c9 Recolor doc site. 2014-04-07 21:03:16 -07:00
57fa694c36 Give PinnedObject a public name.
It needs to be public since the macros expand to stack allocations
of it.
2014-04-07 07:47:58 -07:00
289e70ed38 Reorganize the defines a bit. 2014-04-07 07:45:09 -07:00
db082967f4 Minor cleanup and refactoring. 2014-04-06 18:59:53 -07:00
aab02bcded Tweak docs a bit. 2014-04-06 16:16:24 -07:00
f41be80e5f Use a growable buffer for globals.
Also allows more than 256.
2014-04-06 16:16:15 -07:00
a1118c332c IO.write -> IO.print in docs. 2014-04-06 08:38:00 -07:00
9a8f2edda4 List.addAll(). 2014-04-06 08:37:37 -07:00
28021dc63e Redo site design. 2014-04-05 15:39:02 -07:00
bffb0e5d93 Start documenting functions. 2014-04-04 20:45:12 -07:00
2da8025cd4 Fiber.create -> new Fiber 2014-04-04 18:24:55 -07:00
f5a9f39568 Check argument type in new Fn. 2014-04-04 18:13:13 -07:00
4a8cf3a7bf Move newline handling down into parser.
This lets us make it a grammar feature and not a lexer trick.
Newlines are explicitly ignored in some parts of the grammar. This
lets, for example, things like "|" ignore the newline when used as
an operator, but not when used as a parameter delimiter in a block
argument.
2014-04-04 07:51:18 -07:00
da4cadf16b Unify body handling.
Blocks, functions, and methods now have the same code for handling
their bodies.

This means that single-line methods work like single-line functions:
they return the result of their expression.
2014-04-03 07:48:19 -07:00
55c2c6ffb0 Remove old function syntax. 2014-04-02 20:22:36 -07:00
d146018559 Convert all fns to block arg syntax. 2014-04-02 19:41:53 -07:00
a550d6cea4 Change how new operators are compiled.
Instead of an instruction that always instantiates an instance,
the "new" is compiled to a method call on the class, followed by a
method call on the (presumably) new instance.

The former lets built-in types like Fn do special stuff instead of
allocating an instance. In particular, it means:

  new Fn { ... }

can just return the block argument.
2014-04-02 17:42:30 -07:00
cc56ac4da7 Convert fiber tests to use block arguments. 2014-04-02 17:31:58 -07:00
dc366185bd Add support for block arguments in method calls. 2014-04-02 17:26:39 -07:00
48a36adf4f Clean up runtime error handling.
This is prep work for being able to catch a runtime error from
another fiber.
2014-03-30 08:39:28 -07:00
9a959c9eb9 Error if argument to new is not a class. 2014-03-06 06:51:16 -08:00
44e68a5db9 Fix #31. Bitwise operators on numbers. 2014-02-24 07:27:43 -08:00
161075affe Merge pull request #39 from zeckalpha/feature/methodNotFound-receiver
Include the receiver name in methodNotFound error messages.
2014-02-24 07:03:56 -08:00
df4c1fa6b2 Changed phrasing, fixed and added a test. 2014-02-23 21:53:49 -06:00
9f05e0d045 Include the receiver name in methodNotFound error messages.
> class Foo {}
> Foo.baz
Receiver 'Foo metaclass', does not implement method 'baz'.
2014-02-22 01:20:53 -06:00
97235caf9c Reword code size limit. 2014-02-19 07:14:46 -08:00
a3086a0306 Merge pull request #38 from zeckalpha/feature/corelib-spaces
Remove spaces before arguments in core.wren
2014-02-19 07:13:03 -08:00
001a8fe54f Merge pull request #37 from zeckalpha/feature/docs-todos
Feature/docs todos
2014-02-19 07:12:33 -08:00
60613c486f Merge pull request #33 from zeckalpha/feature/docs-punctuation
Punctuation choices
2014-02-19 07:10:38 -08:00
9792581292 Style choice: I had been writing methods with spaces before the arguments, but that doesn't seem to be the case in the documentation. This is just to keep things consistent 2014-02-18 11:55:55 -06:00