1
0
forked from Mirror/wren
Commit Graph

16 Commits

Author SHA1 Message Date
545a4cbf7e Style example output and errors in the docs. 2015-10-18 15:56:52 -07:00
505b48fdac Add a real Pygments lexer for Wren (finally!). 2015-09-22 07:59:54 -07:00
58e4d26648 "IO" -> "System".
Get rid of the separate opt-in IO class and replace it with a core
System class.

- Remove wren_io.c, wren_io.h, and io.wren.
- Remove the flags that disable it.
- Remove the overloads for print() with different arity. (It was an
  experiment, but I don't think it's that useful.)
- Remove IO.read(). That will reappear using libuv in the CLI at some
  point.
- Remove IO.time. Doesn't seem to have been used.
- Update all of the tests, docs, etc.

I'm sorry for all the breakage this causes, but I think "System" is a
better name for this class (it makes it natural to add things like
"System.gc()") and frees up "IO" for referring to the CLI's IO module.
2015-09-15 07:46:09 -07:00
556af50f83 Revise low level fiber semantics to play nicer with schedulers.
Now that I'm starting to write a real async scheduler on top of Wren's
basic fiber API, I have a better feel for what it needs. It turns out
run() is not it.

- Remove run() methods.
- Add transfer() which leaves the caller of the invoked fiber alone.
- Add suspend() to return control to the host application.
- Add Timer.schedule() to start a new independently scheduled fiber.
- Change Timer.sleep() so that it only transfers control to explicitly
  scheduled fibers, not any one.
2015-08-30 22:15:37 -07:00
bc822cd4c7 Merge branch 'master' into constructor-methods 2015-07-19 12:49:23 -07:00
214794db67 Fix a tiny typo. 2015-07-19 09:10:42 -07:00
5fb6186d7d Make constructors just methods.
* Eliminate "new" reserved word.
* Allow "this" before a method definition to define a constructor.
* Only create a default constructor for classes that don't define one.
2015-07-10 09:18:22 -07:00
96ceaa528b Allow empty argument list methods.
- Compile them as calls and definitions.
- Use them for call(), clear(), run(), try(), and yield().
- Update the docs.
2015-02-26 23:08:36 -08:00
a8726e6c00 SO MUCH NEW DOCS OH WOW. 2015-01-03 23:27:02 -08:00
d5f68d70f0 Restyle site. 2014-08-19 07:35:20 -07:00
d338ef2f07 Finish fiber docs. 2014-04-19 20:33:49 -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
cd75e17f0d Docs docs docs. 2014-04-11 10:45:20 -07:00
f2aeb30b31 Hack on the docs a bit. 2014-01-30 06:51:52 -08:00