Commit Graph
727 Commits
Author SHA1 Message Date
Bob Nystrom e007bb7f11 Make embedding API provide full method signature. 2015-02-26 07:44:45 -08:00
Bob Nystrom 22edfd7e7f Add note to comment. 2015-02-26 07:37:10 -08:00
Bob Nystrom 6a10d9740c Merge pull request #187 from MarcoLizza/bitwise_precedence
Bitwise precedence
2015-02-25 07:14:31 -08:00
Bob Nystrom fc2ed6f6e1 Don't allow trailing non-number characters when parsing a string to a number. 2015-02-25 07:07:54 -08:00
Marco Lizza 88e7f778aa Raising '&&' precedence above '||' one's. 2015-02-25 16:04:02 +01:00
Marco Lizza 21734b169a Bitwise operators precedence is now between 'PREC_COMPARISON' and 'PREC_RANGE'. 2015-02-25 16:02:29 +01:00
Marco Lizza cec1f9160a Moving bitwise precedence-test to the correct folder. 2015-02-25 16:00:53 +01:00
Bob Nystrom 4b88292ec1 Merge branch 'num-from-string' of git://github.com/gsmaverick/wren into gsmaverick-num-from-string 2015-02-25 06:53:12 -08:00
Bob Nystrom 516808f6d2 Fix typo in docs. 2015-02-25 06:49:42 -08:00
Gavin Schulz f4a39bc943 Code review changes. 2015-02-25 01:20:53 -08:00
Bob Nystrom 6e680f89bf Merge branch 'master' of https://github.com/munificent/wren 2015-02-24 22:08:57 -08:00
Bob Nystrom b5e5f80d8c Fix some signed-unsigned mismatches. 2015-02-24 21:56:33 -08:00
Bob Nystrom 0242e43ed5 Make sure UINT32_MAX is available even in gcc C++ builds. 2015-02-24 21:09:04 -08:00
Bob Nystrom d0923f8fe1 Make sure UINT32_MAX is defined. 2015-02-24 20:26:39 -08:00
Bob Nystrom 963ebb237d Install gcc-multilib so 32-bit C libraries are available on 64-bit Travis VMs. 2015-02-24 20:26:24 -08:00
Bob Nystrom 03595703e2 Merge pull request #185 from MarcoLizza/baseline_in_benchmark_dir
Fixed benchmark baseline-file creation path.
2015-02-24 19:49:29 -08:00
Bob Nystrom 5f0a2ba21c Just use a normal relative path to import relative to the cwd. 2015-02-24 19:47:17 -08:00
Bob Nystrom dc0dda3993 Merge branch 'wren_cpp_warnings' of git://github.com/MarcoLizza/wren into MarcoLizza-wren_cpp_warnings 2015-02-24 19:43:12 -08:00
Bob Nystrom f296850242 Build all configurations on Travis. 2015-02-24 19:32:46 -08:00
Marco Lizza dfa1b51663 Add bitwise operators precedence test. 2015-02-23 17:29:31 +01:00
Marco Lizza f280789758 Fix bitwise operators precedence. 2015-02-23 17:28:43 +01:00
Bob Nystrom 422801a64a Allow executing multiple chunks of code in the same module.
This means successive calls to wrenInterpret() will run in
the same context. Allows variables to span calls in the REPL.
2015-02-23 07:02:27 -08:00
Marco Lizza 0577bf3784 Use current working directory as a module root for REPL. 2015-02-23 13:57:56 +01:00
Marco Lizza 940135c03b Remove C++ warnings on GCC and (minor) memory leak when allocating root-directory. 2015-02-23 13:57:20 +01:00
Marco Lizza 512baa2aff Fixed benchmark baseline-file creation path. 2015-02-23 10:01:57 +01:00
Gavin Schulz 03a5b96040 Add a fromString static method on Num that converts strings to numbers. 2015-02-22 20:06:17 -08:00
Bob Nystrom a9d9362e29 Fix some typos in fn docs. 2015-02-22 12:34:32 -08:00
Bob Nystrom 0dda174855 A bit more compiler clean up. 2015-02-22 11:04:43 -08:00
Bob Nystrom 0f9e15833f Unify argument parsing. Fix #24. 2015-02-22 10:42:49 -08:00
Bob Nystrom a8a5805895 Fix test script. 2015-02-22 10:42:21 -08:00
Bob Nystrom bd97c244a5 Document removeAt() return value. Fix #176. 2015-02-22 10:26:31 -08:00
Bob Nystrom d6ec8c114e Don't crash if script path has no path separator. Fix #181. 2015-02-22 10:22:21 -08:00
Bob Nystrom 037a2bdb66 Massive Makefile clean up!
- "make all" builds all combinations of configurations
- Binaries are built to "bin"
- (For convenience, the release interpreter also goes in the top level dir)
- Libraries are built to "lib"

This will also make it easier to support building and testing other
configurations like Nan tagging versus union, computed goto, etc.
2015-02-22 10:19:23 -08:00
Bob Nystrom 3802609644 Store benchmark baseline file in benchmark/. 2015-02-21 13:49:02 -08:00
Bob Nystrom b45d3689de Clean up some comments. 2015-02-21 00:09:55 -08:00
Bob Nystrom 44c547176b Fix quotes in module docs. 2015-02-20 06:54:03 -08:00
Bob Nystrom a4fa3027c0 Fix cyclic import docs. 2015-02-19 06:38:13 -08:00
Bob Nystrom bdb8634743 Tweak style. 2015-02-19 06:32:46 -08:00
Paul Woolcock 4260a10983 add simple example for importing a module 2015-02-18 11:39:31 -05:00
Bob Nystrom ae88ee539d Merge branch 'master' of https://github.com/munificent/wren 2015-02-18 07:55:38 -08:00
Bob Nystrom ca14dffab4 First pass at docs for modules. 2015-02-18 07:55:09 -08:00
Bob Nystrom 8ec89740c5 Merge pull request #172 from MarcoLizza/more_bitwise
More bitwise operands
2015-02-18 06:51:13 -08:00
Bob Nystrom b2ca4c0381 Allow zero or multiple imported names. 2015-02-17 07:32:33 -08:00
Bob Nystrom 31304ac2bb Merge branch 'master' into modules 2015-02-17 07:22:21 -08:00
Bob Nystrom c6043d3c81 Use bytecode to import variable, instead of builtin function. 2015-02-17 07:21:51 -08:00
Bob Nystrom 314c39e430 Use a native bytecode to load a module, instead of a weird builtin function on String. 2015-02-16 22:45:58 -08:00
Marco Lizza 269bf90ec8 More explicit naming bitwise operand implementations. 2015-02-16 22:29:30 +01:00
Marco Lizza c45d70ac4e Fixed token name for '<<' and '>>'. 2015-02-16 22:26:54 +01:00
Bob Nystrom c2c576b27c Get rid of builtin function for importing. 2015-02-16 10:21:29 -08:00
Bob Nystrom 5b1447882b Move running the module fiber into C. 2015-02-16 10:16:42 -08:00