Commit Graph

19 Commits

Author SHA1 Message Date
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
b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
6c3aa85228 Make IO a static class instead of a singleton. 2013-12-21 19:25:09 -08:00
ee504435f7 Real hello world example. 2013-11-17 08:55:04 -08:00
8f6881c6a8 Change syntax for blocks -> fns. 2013-11-06 07:47:47 -08:00
64f1b39ee9 Get infix arithmetic operators working. 2013-10-31 07:04:44 -07:00
95fb0863d9 Add IO class.
With io.write(), can start writing tests now.
2013-10-27 22:45:40 -07:00
b9baf46e9a Argument lists. 2013-10-26 16:01:44 -07:00
f867bb8348 String literals and objects. 2013-10-25 20:40:24 -07:00
b7de165950 Line comments. 2013-10-25 20:07:04 -07:00
32f8c412c7 Method calls. 2013-10-24 21:32:17 -07:00
2f930f727e Make blocks callable. 2013-10-24 13:01:24 -07:00
911f586e7b Block objects.
Also clean up newline handling in parser.
2013-10-24 12:39:01 -07:00
67e5660346 Start working on class definitions. 2013-10-23 22:50:04 -07:00
40e6d2f077 Local variables. 2013-10-23 15:32:59 -07:00
3da1cbe2fa Pure recursive descent parser.
Also, start hacking on method calls.
2013-10-23 13:51:41 -07:00
b1867f054a Actually parse number literal. 2013-10-22 13:37:53 -07:00
dd8998db24 Start sketching out single-pass compiler. 2013-10-22 12:16:39 -07:00
2f6a6889f1 Initial commit. 2013-10-22 11:22:22 -07:00