Commit Graph

  • 39e275b09c refactor: remove methodNotFound and tooManyInheritedFields helpers, add RUNTIME_ERROR macro for unified runtime error handling in interpreter Bob Nystrom 2014-03-30 15:39:28 +00:00
  • f942da2723 fix: add runtime error when new is called on non-class argument Bob Nystrom 2014-03-06 14:51:16 +00:00
  • b36705d3f3 feat: add bitwise AND and OR operators for numbers with 32-bit unsigned semantics Bob Nystrom 2014-02-24 15:27:43 +00:00
  • 63644010cc feat: include receiver class name in methodNotFound error messages Bob Nystrom 2014-02-24 15:03:56 +00:00
  • 4cac6ce201 fix: remove redundant "Receiver" prefix from method-not-found error message Kyle Marek-Spartz 2014-02-24 03:53:49 +00:00
  • d5a121d7da feat: include receiver class name in methodNotFound error messages Kyle Marek-Spartz 2014-02-22 07:20:53 +00:00
  • 65075d433c docs: reword code size limit from 5,000 to 4,000 semicolons in index.markdown Bob Nystrom 2014-02-19 15:14:46 +00:00
  • 42cec3b114 fix: remove spaces before arguments in map and where methods in core.wren and its embedded source Bob Nystrom 2014-02-19 15:13:03 +00:00
  • 1102303a04 docs: add TODO markers for class and method-calls refactoring and static methods Bob Nystrom 2014-02-19 15:12:33 +00:00
  • c09be2e1ed docs: replace hyphens with em dashes and fix hyphenation in documentation files Bob Nystrom 2014-02-19 15:10:38 +00:00
  • e9391313b7 style: remove space before parentheses in map and where method definitions in core.wren and generated wren_core.c Kyle Marek-Spartz 2014-02-18 17:54:55 +00:00
  • 86029c5123 docs: replace em dash with unicode character and semicolon with colon in two markdown files Kyle Marek-Spartz 2014-02-17 19:56:41 +00:00
  • 8efb499f27 feat: move title to left side in template for better visibility with many tabs open Bob Nystrom 2014-02-17 18:27:27 +00:00
  • aabb77b845 docs: normalize code block indentation from 4 to 2 spaces in variables.markdown Bob Nystrom 2014-02-17 18:20:33 +00:00
  • ea57beeabc docs: swap title and site name order in HTML template for better tab readability Kyle Marek-Spartz 2014-02-17 04:02:04 +00:00
  • 9dfcf530db docs: add TODO note to refactor classes and method-calls documentation with operator examples Kyle Marek-Spartz 2014-02-17 01:31:10 +00:00
  • 9e88242ddf docs: add todo note about documenting static methods in classes section Kyle Marek-Spartz 2014-02-17 01:30:06 +00:00
  • 91f890e0cc docs: replace em dash, hyphenate compound adjective, and use colon in documentation Kyle Marek-Spartz 2014-02-17 01:28:40 +00:00
  • 59ce704a53 style: convert dart code block indentation from 4 to 2 spaces in variables.markdown doc Kyle Marek-Spartz 2014-02-17 01:27:11 +00:00
  • 49bb36cc9b feat: enable custom bitwise operators | and & in wren compiler and add tests Bob Nystrom 2014-02-17 01:43:40 +00:00
  • 6cfb8b1551 test: merge custom bitwise operator tests into existing operators test file Kyle Marek-Spartz 2014-02-17 01:42:49 +00:00
  • 3cf502b5e5 docs: normalize io to IO across multiple documentation files Bob Nystrom 2014-02-17 01:37:45 +00:00
  • 4f4251882d feat: enable custom bitwise operators | and & in wren compiler and add test Kyle Marek-Spartz 2014-02-16 18:01:40 +00:00
  • 3b9478908f docs: update documentation examples to use uppercase IO instead of lowercase io Kyle Marek-Spartz 2014-02-16 17:28:56 +00:00
  • d2a5f3c79e docs: fix two typos in performance documentation (rivaling, carnival) Bob Nystrom 2014-02-16 17:20:43 +00:00
  • 31ee167168 feat: extract map and where into Sequence base class for List and Range Bob Nystrom 2014-02-16 17:20:31 +00:00
  • e0ff4a8f00 fix: correct spelling of "rivaling" to "rivaling" and "carvinal" to "carnival" in performance docs Bob Nystrom 2014-02-16 16:51:34 +00:00
  • 5ccf0546c1 fix: correct spelling of "rivaling" and "carnival" in performance documentation Kyle Marek-Spartz 2014-02-15 23:12:18 +00:00
  • b044447464 refactor: replace manual if-else with ternary operator and use .where() for list filtering in delta_blue benchmark Bob Nystrom 2014-02-15 19:59:56 +00:00
  • 73b92ca7f3 feat: add conditional operator and fn toString to wren compiler and core Bob Nystrom 2014-02-15 19:36:01 +00:00
  • d335116799 feat: add List.where method for filtering elements with a predicate function Bob Nystrom 2014-02-15 19:21:24 +00:00
  • 68a5c8ba86 feat: add List.map method with test for applying a function to each element Bob Nystrom 2014-02-15 17:12:04 +00:00
  • 35fbcc5b49 feat: add List.where method for filtering elements with predicate function Kyle Marek-Spartz 2014-02-15 06:42:14 +00:00
  • edaf529598 chore: replace IO.write with IO.print and fix array spacing in map test Kyle Marek-Spartz 2014-02-15 06:34:30 +00:00
  • 6d11a2e4a1 fix: correct typo in comment and remove unnecessary struct tag in Token definition Bob Nystrom 2014-02-15 06:22:15 +00:00
  • 632cbf31b7 fix: correct typo in comment and remove redundant struct tag in Token definition Kyle Marek-Spartz 2014-02-15 06:15:51 +00:00
  • 48ef257973 feat: add List.map method with test for element transformation Kyle Marek-Spartz 2014-02-15 05:06:29 +00:00
  • 5f505c2a02 fix: allow class body to end without newline after last method definition Bob Nystrom 2014-02-15 04:15:49 +00:00
  • 08618abc5d fix: allow empty range subscripts [0..-1] and [0...0] on empty lists Bob Nystrom 2014-02-15 04:10:41 +00:00
  • 5f16a3a1cc fix: remove conditional guards in List.+ and handle empty list iteration in iterate native Bob Nystrom 2014-02-15 01:24:06 +00:00
  • e690a48e45 feat: implement List concat operator + supporting Range and empty lists Kyle Marek-Spartz 2014-02-14 17:09:02 +00:00
  • 04cb19c605 fix: close upvalues before fiber completion and add closure tests Bob Nystrom 2014-02-14 15:16:56 +00:00
  • 00239d37b2 test: add test verifying this refers to class in static methods Bob Nystrom 2014-02-14 14:37:37 +00:00
  • 9f9149bb08 chore: remove outdated TODO comments from test files for default constructor, for loop, list subscript setter, range, string unicode escapes, and while syntax Bob Nystrom 2014-02-13 16:38:44 +00:00
  • e3b3fef0fb feat: make this the implicit receiver for method calls inside class bodies Bob Nystrom 2014-02-13 01:33:35 +00:00
  • c04865df2e feat: add python3 benchmark runner and fix python3 compatibility in benchmark scripts Bob Nystrom 2014-02-13 01:22:42 +00:00
  • 05857c8b47 feat: add delta_blue benchmark with Wren, Lua, and Python implementations Bob Nystrom 2014-02-10 15:56:11 +00:00
  • 6947143007 fix: assign reallocation result to list->elements in shrink path Bob Nystrom 2014-02-10 15:55:14 +00:00
  • f3d287d430 fix: handle parameter list checking for closures in callFunction Bob Nystrom 2014-02-10 15:53:09 +00:00
  • a9519001bd fix: correct bounds check for method table lookup in wren_vm.c Bob Nystrom 2014-02-09 04:25:33 +00:00
  • 01ff51191b feat: add wrenReturnNull and wrenReturnString functions for FFI string and null support Bob Nystrom 2014-02-05 14:30:20 +00:00
  • 86015f4e48 feat: add numParams tracking and arity-checked fn.call variants for extra/missing args Bob Nystrom 2014-02-04 17:34:05 +00:00
  • dbf0131776 feat: move OS.clock to IO.clock and remove deprecated os_clock native Bob Nystrom 2014-02-04 16:49:16 +00:00
  • 15958938f4 docs: expand class documentation with constructor examples and clarify method overloading by arity Bob Nystrom 2014-02-04 16:45:08 +00:00
  • 99eac12fd3 refactor: extract IO class into separate module with wrenLoadIOLibrary and wren_io.c Bob Nystrom 2014-02-04 16:44:59 +00:00
  • 36aea2508c feat: define WrenInterpretResult enum and update wrenInterpret return type Bob Nystrom 2014-02-03 14:51:44 +00:00
  • 19e362f977 fix: add lexError calls for invalid string literals and unterminated strings in wren_compiler.c Bob Nystrom 2014-02-02 18:31:46 +00:00
  • ae19742ceb feat: add suite parameter to test target in Makefile for selective test runs Bob Nystrom 2014-02-02 18:30:58 +00:00
  • 2614bf3ab8 feat: add DROP() macro to discard stack top without returning value Bob Nystrom 2014-02-01 18:44:47 +00:00
  • 05e85ac8c6 fix: suppress unused-value warnings by casting POP() calls to void Bob Nystrom 2014-02-01 18:42:09 +00:00
  • c5a07187b3 fix: suppress unused-value warnings from POP() macro by casting to void gaodayue 2014-02-01 17:04:33 +00:00
  • 127bf75505 refactor: rename compare_modification_times to is_up_to_date and update output path from build/site to build/docs Bob Nystrom 2014-02-01 04:55:37 +00:00
  • d2d1835e54 feat: recopy css file if it has been modified since last build Bob Nystrom 2014-02-01 04:51:30 +00:00
  • 2538922db5 docs: add comprehensive list documentation and header anchor links in style Bob Nystrom 2014-02-01 01:51:09 +00:00
  • 5ce436a3c0 fix: recopy CSS file to build output when its modification time changes Kyle Marek-Spartz 2014-01-28 19:56:49 +00:00
  • b89aac569b fix: change shebang from /usr/bin/python to /usr/bin/env python in generate scripts Bob Nystrom 2014-02-01 00:40:17 +00:00
  • 1607b6d2dd feat: allow Range objects as list subscript operator arguments Bob Nystrom 2014-01-30 17:12:44 +00:00
  • 1464007327 docs: add watchdocs target, stub pages for fibers/lists/maps, fix class example, and move build output to build/docs Bob Nystrom 2014-01-30 14:51:52 +00:00
  • ea2ec33ce0 refactor: move class name from CODE_CLASS argument to stack in compiler and VM Bob Nystrom 2014-01-29 15:47:09 +00:00
  • e83296ea53 feat: add class name storage and expose via name method on class objects Bob Nystrom 2014-01-28 23:31:11 +00:00
  • e95bd43dac fix: switch shebang from hardcoded /usr/bin/python to portable /usr/bin/env python Kyle Marek-Spartz 2014-01-28 18:56:24 +00:00
  • 74b67eae67 refactor: remove separate CODE_SUBCLASS instruction, unify class creation with null sentinel Bob Nystrom 2014-01-27 01:25:38 +00:00
  • 4aa851cb64 fix: correct upvalue argument count calculation in bytecode patching loop Bob Nystrom 2014-01-27 01:24:59 +00:00
  • f62ae5174e feat: restructure Makefile with debug/release builds and move scripts to subdirectory Bob Nystrom 2014-01-24 07:29:50 +00:00
  • 4f8a5384ea fix: handle EOF on stdin by returning from REPL loop on Ctrl-D Bob Nystrom 2014-01-21 23:41:07 +00:00
  • c9d57a17d8 feat: add initial Makefile with build, clean, test, docs, and corelib targets Bob Nystrom 2014-01-21 23:29:43 +00:00
  • 7a2fad17ed fix: remove redundant manual increment of loop variable in List.toString Bob Nystrom 2014-01-21 16:23:30 +00:00
  • 848f0b69bd feat: add initial Makefile with build, clean, test, docs, and corelib targets Kyle Marek-Spartz 2014-01-21 16:20:35 +00:00
  • 4536c82636 feat: move gc marking functions from wren_vm.c to wren_value.c and expose markValue/markObj as public API Bob Nystrom 2014-01-21 16:20:00 +00:00
  • 474e89c992 refactor: consolidate type-check helpers into generic wrenIsObjType and validate IS operand is class Bob Nystrom 2014-01-21 15:52:03 +00:00
  • 7e3b9a6bcb fix: validate number comparison operand types in num_lt, num_gt, num_lte, num_gte Bob Nystrom 2014-01-21 15:44:11 +00:00
  • f9371faf00 fix: store runtime error string in fiber and remove error parameter from stack trace printing Bob Nystrom 2014-01-21 06:55:11 +00:00
  • 781ccf3fb6 docs: revise branching, classes, index, looping, qa, syntax docs and add concurrency/error-handling nav entries Bob Nystrom 2014-01-21 05:44:51 +00:00
  • a5c4918a75 feat: treat null as falsey in conditional and logical operator branches Bob Nystrom 2014-01-21 02:12:55 +00:00
  • a696c060fc chore: remove stale TODO comments for static fields and stack overflow in wren_value.c and wren_vm.c Bob Nystrom 2014-01-20 21:57:44 +00:00
  • 341147eaf4 refactor: extract duplicate marking logic into setMarkedFlag helper Bob Nystrom 2014-01-20 21:54:14 +00:00
  • 265c3a58f7 refactor: replace while loop with for-in range loop in binary_trees benchmark Bob Nystrom 2014-01-20 21:46:37 +00:00
  • 00008eae9a refactor: replace while loop with for-in range in List.toString method Bob Nystrom 2014-01-20 21:43:22 +00:00
  • cf5a34025b feat: add isInclusive field to ObjRange and implement proper exclusive range iteration Bob Nystrom 2014-01-20 21:20:22 +00:00
  • ebb47d30e6 feat: replace Wren Range class with native C object for performance Bob Nystrom 2014-01-20 16:45:15 +00:00
  • d758f63212 feat: reduce for-loop benchmark iteration count from 2M to 1M across Lua, Python, Ruby, Wren Bob Nystrom 2014-01-20 16:43:10 +00:00
  • 7ad96755f4 feat: implement static methods as local variables in implicit class scope Bob Nystrom 2014-01-19 21:01:51 +00:00
  • 9d71e765c8 refactor: extract class compilation state into dedicated ClassCompiler struct Bob Nystrom 2014-01-18 22:03:52 +00:00
  • f2bf1104af feat: add TOKEN_STATIC_FIELD token for double-underscore prefixed identifiers Bob Nystrom 2014-01-18 17:33:18 +00:00
  • 15d9dc229c feat: prevent metaclass inheritance and disallow super in static methods Bob Nystrom 2014-01-18 01:29:10 +00:00
  • 4605b70c6e fix: include function name in ASSERT macro output for debug builds Bob Nystrom 2014-01-18 01:21:38 +00:00
  • 3663af8a27 fix: prevent instance field access inside static methods in wren compiler Bob Nystrom 2014-01-16 15:09:43 +00:00
  • 7e196d9781 feat: add MAX_FIELDS constant and runtime overflow checks for class field limit of 255 Bob Nystrom 2014-01-15 15:59:10 +00:00
  • b4437d5723 fix: recursively bind inherited field references inside nested closures in wrenBindMethodCode Bob Nystrom 2014-01-15 15:03:24 +00:00
  • 192ce49dc3 fix: correct typos in qa.markdown for Wren documentation Bob Nystrom 2014-01-14 04:23:11 +00:00