c2e6181b01
Newline at end of file
2015-01-09 15:15:34 -06:00
2253d9269f
Fix for iterate handling null
2015-01-09 15:15:34 -06:00
a67cde69bb
Update set example to use bitwise operators
2015-01-09 15:15:34 -06:00
18af6514f0
Add Set example
2015-01-09 15:15:34 -06:00
aa48223361
Merge pull request #92 from zeckalpha/https_for_fonts
...
Fonts weren't working in Firefox due to Mixed Content errors.
2015-01-09 09:34:35 -08:00
d9527dc4dc
Use protocol-relative URL
2015-01-09 09:25:06 -06:00
3116bf97de
Use correct buffer size in string subscript operator.
2015-01-09 07:12:25 -08:00
bcf052436f
Merge pull request #94 from edsrzf/fix-neg-number
...
Don't treat negative numbers as literals
2015-01-09 07:00:12 -08:00
75d28c083c
Don't treat negative numbers as literals
...
Fixes #93 .
Previously, "1 -1" was lexed as two number tokens: a positive literal and
a negative literal. This caused problems when it came to parsing.
Now the '-' and the second number are separate tokens.
Note this is a breaking change, since `-16.sqrt` is now parsed as `-(16.sqrt)`,
as opposed to `(-16).sqrt`.
There is a small bit of overhead to doing it this way, but it might be possible
to optimize that out in the compiler at some point in the future.
2015-01-09 20:17:40 +13:00
efabf20fee
Make a few changes to methodNotFound():
...
- Move closer to other runtime error code.
- Make it static since it's private to wren_vm.h.
- Allocate a managed ObjString* for the message so the GC can handle it.
That's how it ends up anyway, so this cuts out the middle man.
- Use a width specifier in sprintf() to print the canonical method name.
2015-01-08 22:29:37 -08:00
a9f1d52ef7
Merge branch 'improve-debugging' of git://github.com/gsmaverick/wren into gsmaverick-improve-debugging
2015-01-08 21:49:20 -08:00
15da548f48
Code review changes.
2015-01-08 21:30:47 -08:00
7f1b5bfe51
Add stack vs register-based question to FAQ.
2015-01-08 21:06:10 -08:00
28203e3df5
Fonts weren't working in Firefox due to Mixed Content errors.
...
https://developer.mozilla.org/en-US/docs/Security/MixedContent
2015-01-08 19:57:15 -06:00
15b0d8777c
Handle toString not returning a string in IO.print and IO.write.
...
Fix #67 .
2015-01-08 07:53:37 -08:00
92fcfc1b00
Merge pull request #83 from zeckalpha/benchmark_missing_interpreters
...
Benchmark: Alert that an interpreter was not found rather than halting.
2015-01-08 07:44:29 -08:00
cb0bb6a375
Merge pull request #84 from zeckalpha/operator_they_their_typo
...
Docs: Expressions: Operators: they->their typo
2015-01-08 07:43:00 -08:00
a9a676d706
Merge branch 'master' of https://github.com/munificent/wren
2015-01-08 07:41:49 -08:00
1a7f849c42
Store string length as an int instead of size_t.
...
Saves a few bits, and avoids some signed/unsigned conversions.
It's also consistent with other places string lengths are stored in the VM.
2015-01-08 07:41:30 -08:00
817f37bbf0
Docs: Expressions: Operators: they->their typo
2015-01-08 09:32:50 -06:00
5e07c10374
Benchmark: Alert that an interpreter was not found rather than halting.
2015-01-08 09:16:32 -06:00
1e6241a7df
Merge pull request #81 from edsrzf/sprintf-return
...
Use the return value of sprintf to avoid strlen calls
2015-01-08 07:01:21 -08:00
49575fc1a5
Merge pull request #80 from edsrzf/string-store-length
...
Store string length
2015-01-08 06:59:41 -08:00
648ee727a1
Fix style nits
2015-01-08 19:34:58 +13:00
68adc3f511
Use the return value of sprintf to avoid strlen calls
2015-01-08 13:46:33 +13:00
5261ef498f
Optimize string methods for stored length
...
wrenStringConcat could still make use of this info, but that's a more involved
change.
2015-01-08 11:09:11 +13:00
3fd348e6c1
Store string length
...
Strings are still null-terminated so that they can be treated as C strings.
2015-01-08 10:05:51 +13:00
0d099933d6
Add myself to AUTHORS
2015-01-08 09:51:13 +13:00
437eddc126
Merge pull request #77 from zeckalpha/benchmark_metrics
...
Add metrics for benchmarks
2015-01-07 07:30:59 -08:00
d53da95664
Merge pull request #76 from zeckalpha/run_bench_python3
...
Make run_bench compatible with Python 3
2015-01-07 07:25:46 -08:00
71fbc32c42
Merge branch 'master' into edsrzf-string-flexible-array
2015-01-07 07:23:03 -08:00
fd859ec70a
Merge pull request #75 from edsrzf/fix-benchmark
...
Remove semi-colons from delta_blue.wren
2015-01-07 07:22:05 -08:00
b30f8446f8
Merge branch 'string-flexible-array' of git://github.com/edsrzf/wren into edsrzf-string-flexible-array
2015-01-07 07:20:12 -08:00
ed548aa659
Keep same whitespace as previous version
2015-01-06 17:57:57 -06:00
5e1469fc36
Add metrics for benchmarks
2015-01-06 16:20:52 -06:00
e83d01855c
Make run_bench compatible with Python 3
2015-01-06 16:20:21 -06:00
cb91bea6e7
Remove semi-colons from delta_blue.wren
2015-01-07 08:06:44 +13:00
af6be5d346
Update README.md
...
Add Travis build status image.
2015-01-06 07:21:22 -08:00
6adf8c40e1
Don't use printf() to format NaNs since the output isn't fully specified. Fix #65 .
2015-01-06 07:09:45 -08:00
e3b5206ca8
Use a flexible array for strings
2015-01-06 19:08:42 +13:00
a8507ca17a
Merge branch 'master' of https://github.com/munificent/wren
...
Conflicts:
AUTHORS
2015-01-05 21:58:23 -08:00
2abf70f8d6
Merge pull request #69 from pwoolcoc/add-pwoolcoc-to-authors
...
Add myself to the AUTHORS file
2015-01-05 20:52:01 -08:00
ca9b399d56
Make Python scripts Python 2 and 3 compatible. An alternative to #71 .
2015-01-05 20:09:23 -06:00
6aed3ec64c
Add myself to the AUTHORS file
2015-01-05 11:02:52 -05:00
84b2dbf48e
Merge pull request #66 from txgruppi/master
...
Updated description of logical or
2015-01-05 07:46:26 -08:00
59c2024384
Updated description of logical or
2015-01-05 09:42:34 +00:00
84ead3bb18
Start sketching out an actual contributor's guide.
...
- Add AUTHORS file
- Update README to match site docs
2015-01-04 13:36:23 -08:00
52bd38f3bd
Don't double report lexer errors.
2015-01-04 13:10:46 -08:00
09bb28735c
Merge branch 'feature-shebang-support' of git://github.com/mauvm/wren into mauvm-feature-shebang-support
2015-01-04 13:02:42 -08:00
a9bb2387a1
Handle empty (or comment-only) files. Fix #57 .
2015-01-04 13:00:53 -08:00