Daniel Kang
fa294d9731
Merge pull request #14 from mdbazuin/feature/7-type-conversion-defaults
...
Type conversion builtin take default values
2019-01-18 14:47:50 -08:00
Mike Bazuin
fae85000cf
Convert returns second argument Object as it self in case of failure of conversion of first argument
...
objects/builtin_convert.go
- Changed type check of in case of args[0] failure to always return
args[1] if set
runtime/vm_builtin_test.go:
- Changed tests according to changes in objects/builtin_convert.go
2019-01-18 23:29:04 +01:00
Mike Bazuin
a747c98fb5
Builtin converts now take default values
...
objects/builtin_convert.go: Added defaults to all builtin convert functions except
bool as this one returns false for undefined, instead of undefined.
runtime/vm_builtin_test.go: Added tests for checking default value
behaviour for builtin convert funcs
2019-01-18 22:21:42 +01:00
Mike Bazuin
b4a2da8a30
runtime/vm_builtin_test.go: Added builtin bytes convert test
2019-01-18 22:21:35 +01:00
Daniel Kang
f482de6d69
Merge pull request #9 from d5/osmod
...
Module "os"
2019-01-18 10:56:46 -08:00
Daniel Kang
b3d4854961
update README
2019-01-18 10:52:12 -08:00
Daniel Kang
5164d1de9f
add 'exec' module
2019-01-18 10:17:24 -08:00
Daniel Kang
a8d838ad3e
Compile can take custom stdlibs
2019-01-18 09:19:45 -08:00
Daniel Kang
bff59006d1
add Variable.Error() function
2019-01-18 02:33:23 -08:00
Daniel Kang
b5108b8065
os Process functions
2019-01-18 02:28:58 -08:00
Daniel Kang
9b1a0a36bf
add more comments
2019-01-18 01:57:14 -08:00
Daniel Kang
8cad04841e
add os File functions; add Bytes type
2019-01-18 01:43:46 -08:00
Daniel Kang
44c55ea296
add some more os module functions, add more built-int functions
2019-01-17 21:23:20 -08:00
Daniel Kang
a14f6ec1c0
incomplete implementation of 'os' module
2019-01-17 16:52:30 -08:00
Daniel Kang
552e9c01c5
separate objects conversion functions
2019-01-17 16:52:07 -08:00
Daniel Kang
cb5cbad3ad
len
builtin supports map and module map
2019-01-17 16:51:26 -08:00
Daniel Kang
d4757efc68
use 'strconv.Quote()` instead of string formatter
2019-01-17 16:51:00 -08:00
Daniel Kang
f145261e85
Update README.md
2019-01-17 09:39:23 -08:00
Daniel Kang
5fa340c7d4
Update README.md
2019-01-17 08:12:53 -08:00
Daniel Kang
3f55a6b5b0
Modules ( #5 )
...
Implement module imports
2019-01-17 01:56:05 -08:00
Daniel Kang
8171d58071
Error Object ( #4 )
...
add error expression and error object
2019-01-16 12:23:20 -08:00
Daniel Kang
b83eac8753
add test for for-in compiler
2019-01-15 21:45:38 -08:00
Daniel Kang
1cf3258023
remove
2019-01-15 20:21:53 -08:00
Daniel Kang
47da30bb5b
some more tests in objects
2019-01-15 20:21:35 -08:00
Daniel Kang
2ceaf3bd8f
remove CircleCI
2019-01-15 20:14:48 -08:00
Daniel Kang
5c5d0e6ad9
fix CircleCI setup
2019-01-15 20:09:32 -08:00
Daniel Kang
6bc2cbe2a7
add CircleCI config
2019-01-15 20:08:16 -08:00
Daniel Kang
40ad7aa1bb
Fix undefined value compatibility
2019-01-15 17:21:58 -08:00
Daniel Kang
d1f7baf054
add Variable.IsUndefined()
2019-01-15 17:17:08 -08:00
Daniel Kang
344c96d280
add objects tests
2019-01-15 10:35:51 -08:00
Daniel Kang
7f9fa836ee
add missing comment
2019-01-15 10:15:48 -08:00
Daniel Kang
e1e0e0cb24
fix golint, ineffectassign issues and add some more tests
2019-01-15 10:14:16 -08:00
Daniel Kang
76a5c592aa
Update README.md
2019-01-15 03:30:32 -08:00
Daniel Kang
575d969956
split iterator files
2019-01-14 23:52:52 -08:00
Daniel Kang
b79fd4f7ef
Fix lint issues ( #2 )
...
* addressing golint issues
* fix all lint issues.
2019-01-14 22:24:33 -08:00
Daniel Kang
1c92fff07d
Update README.md
2019-01-14 08:26:50 -08:00
Daniel Kang
ab5289e99d
Update README.md
2019-01-14 08:24:36 -08:00
Daniel Kang
5c713febc6
Update README.md
2019-01-14 07:24:51 -08:00
Daniel Kang
dec1301907
Update README.md
2019-01-14 07:17:07 -08:00
Daniel Kang
264f15fd00
add documentation on scanner and parser.
2019-01-14 06:57:30 -08:00
Daniel Kang
75e9e171f8
Update README.md
2019-01-14 05:54:28 -08:00
Daniel Kang
4b8bd4eb21
update README
2019-01-14 05:25:04 -08:00
Daniel Kang
dab498651a
add tests for Object.BinaryOp
2019-01-14 05:22:28 -08:00
Daniel Kang
8a2784853b
add documentation comment on Object and Callable interface
2019-01-14 04:47:36 -08:00
Daniel Kang
48847c1f6d
update README
2019-01-14 04:33:29 -08:00
Daniel Kang
797e3cadaa
update benchmark results
2019-01-14 04:32:20 -08:00
Daniel Kang
32df2862b5
remove unnecessary function calls in VM
2019-01-14 04:32:09 -08:00
Daniel Kang
dc16c9abb2
update tests for index/slice operators
2019-01-14 04:26:20 -08:00
Daniel Kang
de70f7c40d
trying to optimize VM by cutting some repeated codes
2019-01-13 15:21:19 -08:00
Daniel Kang
ca128af33b
reduce number of memory allocation in object binary operators
2019-01-13 14:24:39 -08:00