10a6a1d23f
fix: restore parent compiler before freeing on compile error
Bob Nystrom2015-04-04 06:12:14 +00:00
d92a8f1c93
fix: replace foreign Meta.eval with primitive and suppress compile errors in wrenCompile
Bob Nystrom2015-04-04 04:22:58 +00:00
103b9a133b
fix: correct broken link to wren.h in embedding-api documentation
Bob Nystrom2015-04-04 01:51:21 +00:00
734a415999
fix: cast subtraction result to int before abs to suppress clang -Wabsolute-value warning
Bob Nystrom2015-04-04 01:38:10 +00:00
a56c277473
fix: correct broken link to wren.h in embedding-api documentation
Luchs2015-04-03 22:51:42 +00:00
446e8b2ca9
feat: rename Sequence.list method to toList and update all call sites
Bob Nystrom2015-04-03 18:22:34 +00:00
b6e2229b58
feat: move primitive class definitions from C into core.wren library source
Bob Nystrom2015-04-03 15:00:55 +00:00
17c6f277b2
refactor: merge patriciomacadden's refactoring branch into mainline
Bob Nystrom2015-04-03 14:19:17 +00:00
3373ae0296
fix: cast subtraction to int before abs to suppress clang 3.5 -Wabsolute-value warning
Luchs2015-04-01 15:42:20 +00:00
7884d89165
docs: rename MapSequence and WhereSequence fields and parameters for clarity, expand map(_) and where(_) docs with lazy semantics and examples
Bob Nystrom2015-04-01 14:31:15 +00:00
85a889e49f
feat: replace eager map/where with lazy MapSequence and WhereSequence classes
Bob Nystrom2015-04-01 14:22:02 +00:00
7d7be7361e
feat: add Sequence.each method to iterate over elements with a function
Bob Nystrom2015-04-01 14:10:21 +00:00
0cdbe8bc5a
fix: prevent local variables from being in scope during their own initializer
Bob Nystrom2015-04-01 14:05:40 +00:00
07de6fca9e
fix: remove extraneous space inside isspace cast in num_fromString
Bob Nystrom2015-04-01 13:43:44 +00:00
79db06c6a5
fix: cast char to unsigned char in isspace call to fix char-subscripts warning
Bob Nystrom2015-04-01 13:42:38 +00:00
57919022b8
fix: cast char to unsigned char before isspace to fix char-subscripts warning
ComFreek2015-03-31 16:27:44 +00:00
a018470b47
fix: rename wrenDebugPrintCode to wrenDumpCode in endCompiler debug dump
Bob Nystrom2015-03-30 14:39:37 +00:00
26a466b8a1
fix: flush stdout after each benchmark trial dot in run_benchmark_language
Bob Nystrom2015-03-30 14:39:21 +00:00
8fdf76bb57
refactor: merge defineSingleClass into defineClass with conditional raw class creation
Patricio Mac Adden2015-03-29 23:18:36 +00:00
133ed97dcf
fix: correct debug function call from wrenDebugPrintCode to wrenDumpCode in endCompiler
Bob Nystrom2015-03-29 01:08:51 +00:00
5b71ac0c56
feat: replace eager list-based map/where with deferred MapSequence and WhereSequence classes
Thorbjørn Lindeijer2015-03-28 21:51:50 +00:00
1a3ef62f22
fix: replace incorrect wrenDebugPrintCode call with wrenDumpCode in endCompiler
Patricio Mac Adden2015-03-28 20:01:21 +00:00
343bfa7a84
feat: add Sequence.each method for side-effect iteration without list creation
Thorbjørn Lindeijer2015-03-28 19:35:20 +00:00
abe7a8d4b6
chore: remove outdated comment about instruction order matching Code enum in wren_vm.h
Bob Nystrom2015-03-28 17:19:38 +00:00
540a4a166a
feat: make Sequence.all() and Sequence.any() return actual predicate values instead of booleans
Bob Nystrom2015-03-28 17:18:45 +00:00
adc64d65b9
refactor: extract opcode enum and dispatch table into shared X-macro header wren_opcodes.h
Bob Nystrom2015-03-28 16:56:07 +00:00
84ad34b281
fix: invert boolean return semantics of finishBlock to match new doc comment
Bob Nystrom2015-03-28 16:15:19 +00:00
cc5bf9fcfe
feat: add Sequence.list method to collect elements into a new List
Bob Nystrom2015-03-28 16:06:49 +00:00
c4a7ad9d02
docs: clarify UTF-8 indexing explanation and fix punctuation in string and values documentation
Bob Nystrom2015-03-28 03:59:15 +00:00
c3d0b66630
feat: add raw byte access methods and \x escape to String class
Bob Nystrom2015-03-28 03:44:07 +00:00
33d1217d6a
feat: add Sequence.list method to convert any sequence into a List
Thorbjørn Lindeijer2015-03-27 21:59:58 +00:00
b7904a89c9
feat: add String.fromCodePoint static method and refactor UTF-8 encoding into reusable utilities
Bob Nystrom2015-03-27 14:43:36 +00:00
6ff60a8c4a
docs: correct encapsulation docs to state fields are private not protected in Wren
Bob Nystrom2015-03-27 13:46:12 +00:00
26ae448adf
feat: generate runtime error when foreign method is not found
Bob Nystrom2015-03-26 14:17:09 +00:00
83e062cc71
feat: add foreign method binding for Meta class and restrict foreign lookup to core module
Bob Nystrom2015-03-26 03:20:26 +00:00
2b3381e0b2
feat: add Meta class with eval method and integrate into VM and build system
Bob Nystrom2015-03-26 03:06:55 +00:00
b1360adf54
chore: add Thorbjørn Lindeijer to AUTHORS and fix Raymond Sohn email
Bob Nystrom2015-03-26 02:25:37 +00:00
c52fc1844f
feat: add wren_meta source and header files to Xcode project build
Bob Nystrom2015-03-26 02:25:18 +00:00
a737b542b9
feat: add Meta class with eval method and WREN_USE_LIB_META flag
Bob Nystrom2015-03-26 02:21:58 +00:00
e3e31f3d19
docs: add Thorbjørn Lindeijer to AUTHORS file with corrected email format
Bob Nystrom2015-03-26 02:15:58 +00:00
3e65af35c3
chore: add Thorbjørn Lindeijer to AUTHORS file with email address
Thorbjørn Lindeijer2015-03-25 23:01:34 +00:00
90de831bd7
refactor: remove oldSize parameter from WrenReallocateFn and all call sites
Bob Nystrom2015-03-25 14:45:29 +00:00
c32b586603
feat: add standard deviation calculation and color constant refactoring to benchmark script
Bob Nystrom2015-03-25 14:26:45 +00:00
ab52c46a28
chore: remove unused stdio, wren_value, and wren_vm includes from wren_meta.h
Gavin Schulz2015-03-25 06:30:53 +00:00
a350d7c26a
feat: add foreign method binding infrastructure with IO library integration
Bob Nystrom2015-03-24 14:58:15 +00:00
80b24b50e8
refactor: split CFLAGS into C_WARNINGS and C_OPTIONS with pretty-printed build output
Bob Nystrom2015-03-24 14:51:48 +00:00
e76e466d77
feat: add Sequence.count(predicate) method and update docs/tests
Bob Nystrom2015-03-23 14:35:17 +00:00
7ed5603ffc
refactor: rename package module loading to module directory loading in readModule
Bob Nystrom2015-03-23 13:48:08 +00:00
1929f272fa
refactor: extract wrenFilePath helper and add package module fallback in readModule
Bob Nystrom2015-03-23 13:42:03 +00:00
a6ad88c9cd
chore: remove duplicate build result patterns and reorder Xcode entries in .gitignore
Bob Nystrom2015-03-23 13:33:29 +00:00
0937a8d3f8
feat: restructure MSVC solution to separate wren_lib static library from wren CLI project
Bob Nystrom2015-03-23 13:32:29 +00:00
46b6763877
refactor: rename Upvalue to ObjUpvalue for consistency with Obj naming convention
Bob Nystrom2015-03-23 05:31:03 +00:00
15f9273aab
refactor: remove unused WrenVM* parameter from buffer init, string find, and debug print functions
Bob Nystrom2015-03-23 05:17:40 +00:00
580f04be1a
chore: remove redundant -Wsign-compare -Wtype-limits -Wuninitialized from CFLAGS in wren.mk
Bob Nystrom2015-03-23 05:17:29 +00:00
7385ab2430
chore: enable -Wextra warnings and fix loadIntoCore declaration order
Bob Nystrom2015-03-23 04:49:31 +00:00
c8fa7e619f
feat: add Meta library with eval function for inline code interpretation
Gavin Schulz2015-03-22 21:16:53 +00:00
96a829fc8f
refactor: replace ObjList manual array management with ValueBuffer in Compiler and ObjList
Bob Nystrom2015-03-22 19:22:47 +00:00
899a4ec76e
chore: enable clang suspicious implicit conversion warning and fix related type narrowing issues
Bob Nystrom2015-03-22 17:36:08 +00:00
4343b95c04
fix: restructure REPL loop to eliminate unreachable code after fgets failure
Bob Nystrom2015-03-22 17:26:54 +00:00
295a408858
refactor: extract instance-of check into separate isInstanceOf helper function
Bob Nystrom2015-03-21 23:50:27 +00:00
1374797192
feat: fall back to loading module package when module file not found
Gavin Schulz2015-03-21 23:05:02 +00:00
65305fca09
refactor: remove inline local variable declarations in list primitives and delete redundant math primitives from wren_core.c
Bob Nystrom2015-03-21 21:57:43 +00:00
d04057bf75
feat: add trigonometric methods and Num.pi constant to core library
Bob Nystrom2015-03-21 19:54:08 +00:00
52e0f4b1c0
fix: ensure step is always initialized before range validation in calculateRange
Bob Nystrom2015-03-21 19:32:31 +00:00
07240ccb00
refactor: migrate list index and size types from int to uint32_t across core and value layers
Bob Nystrom2015-03-21 19:22:04 +00:00
69f135cc43
fix: change list capacity and count fields from int to uint32_t for consistency
Bob Nystrom2015-03-21 15:46:01 +00:00
28fdc8372f
fix: replace silent early return with assertion in wrenFreeVM for freed VM detection
Bob Nystrom2015-03-20 15:00:52 +00:00
15e965c5eb
fix: add null and already-freed guard to wrenFreeVM to prevent double-free crash
Bob Nystrom2015-03-20 14:56:32 +00:00
ed559673ea
feat: add Num.pi constant and trigonometric function tests for acos, asin, atan, cos, sin, tan
Thorbjørn Lindeijer2015-03-19 20:12:50 +00:00