Anton Medvedev
fa27498aa2
Update lexer quotes tests
2020-02-25 09:33:17 +03:00
Anton Medvedev
4ddd4fc1c1
Rename util.go to utils.go
2020-02-25 09:33:17 +03:00
Anton Medvedev
e35a372d6b
Add support to lexer to support "not in" operator
2020-02-25 09:33:17 +03:00
Anton Medvedev
de5d4adc5d
Lexer first commit
2020-02-25 09:33:17 +03:00
Anton Medvedev
dfe6009884
Fix check for nil interface
2020-02-21 10:14:14 +03:00
fa91adf0ac
Allow passing nil to functions as nil interface{} ( #87 )
...
* Update vm.go
golang gotcha: reflect calls with nil params fail without this trick
* Update vm.go
* Problem with passing "nil" when operators are overloaded with interface{} type parameters fixed
e.g.
a != nil
was not working when "!=" is overloaded with
func notEqual(a, b interface{}) interface{} {...}
* Compile fix
Forgot to close ")"
* Added test that illustrates what did not work when using overloaded operators and passing nil
* Updated test for overloaded eaqal with using nil
a == b replaced with a == nil to illustrated the problem when using nil directly in expression
* Fixed the problem for untyped nil
We use the trick only for untyped nil:
https://play.golang.org/p/MyAztoZaqhx
* Refactor call procedure
Co-authored-by: wintermute-cds <[email protected] >
2020-02-20 16:59:15 +03:00
Anton Medvedev and GitHub
9d26270e03
Update and rename go.yml to test.yml
2020-02-20 16:55:28 +03:00
Anton Medvedev and GitHub
948d06fa30
Create go.yml
2020-02-20 16:51:49 +03:00
Anton Medvedev
239a5baf0c
Delete CHANGELOG.md
2020-02-14 14:06:29 +03:00
Anton Medvedev
79f59577d8
Add error message on running of nil program
2020-02-14 14:06:05 +03:00
TarasZak and Anton Medvedev
10b48c0915
Add compile checks for undefined variables ( #85 )
...
* Add compile checks for undefined variables
* Update expr_test.go
Co-authored-by: Anton Medvedev <[email protected] >
2020-01-24 14:53:53 +03:00
Alexey Palazhchenko and Anton Medvedev
f841252eaf
Update .travis.yml
2020-01-21 01:50:52 +03:00
Anton Medvedev
c1bb0dd875
Fix bug with compiling integer values to interface{} types.
2019-12-11 18:11:14 +07:00
Anton Medvedev and GitHub
4776cdee05
Update README.md
2019-11-18 09:17:02 +03:00
Anton Medvedev
2e5f623c54
Add bounds check for slice operations
2019-11-13 12:40:30 +03:00
Anton Medvedev
fd6ac2c5e0
Update CHANGELOG.md
2019-11-07 12:19:40 +03:00
Anton Medvedev
8564cbf597
Add option to allow using undefined variables
2019-11-07 12:17:02 +03:00
Anton Medvedev
47dd3b73fb
Fix getting default values out of maps
2019-11-07 11:45:37 +03:00
Anton Medvedev
d75cb08021
Fix checker for string slices.
2019-11-06 16:27:10 +03:00
Anton Medvedev and GitHub
a1fa27b82a
Update CHANGELOG.md
2019-10-28 14:34:01 +03:00
Anton Medvedev
706eff9d60
Remove info about marshaling of program
...
Currently this is not possible. Maybe in future such functionality will
be available. For now you should save original source and compile in before
running.
2019-10-21 11:35:56 +03:00
Elliot and Anton Medvedev
b7f2bedd10
Move conf.Options out of internal package
2019-10-18 10:32:59 +03:00
Anton Medvedev
9d0fed6ca7
Fix type in bench
2019-10-16 11:07:24 +03:00
Anton Medvedev
3363ead189
Update README.md
2019-10-15 15:27:49 +03:00
Anton Medvedev
9f1280ae55
Update README.md
2019-10-15 15:25:28 +03:00
Anton Medvedev and GitHub
9d5d125372
Update CHANGELOG.md
2019-10-15 15:12:06 +03:00
Anton Medvedev
13c0a78fa4
Add fast call opcode for special case functions
2019-10-15 14:43:03 +03:00
Anton Medvedev
9135540071
Add real word examples
2019-10-11 13:34:15 +03:00
Anton Medvedev
c87e3e8439
Improve code readability
2019-10-10 17:42:36 +03:00
Anton Medvedev
3a3b5251a3
Add CHANGELOG.md
2019-10-09 09:46:13 +03:00
Anton Medvedev
336892aca7
Fix offset
2019-10-07 17:02:38 +03:00
Anton Medvedev
48ef328081
Add support for variadic arguments
2019-10-07 17:02:38 +03:00
Anton Medvedev and GitHub
9cab1f27f8
Update README.md
2019-10-06 09:46:30 +03:00
Anton Medvedev
fa66cfd4d1
Add backward compatibility with v1
2019-10-05 15:12:36 +03:00
Anton Medvedev
d7caacf47d
Add extra fetch test for funcs
2019-10-05 15:03:40 +03:00
Anton Medvedev and GitHub
d5ccebc259
Update README.md
2019-10-05 14:25:23 +03:00
Anton Medvedev and GitHub
4b0f89bcf2
Update README.md
2019-10-05 14:21:55 +03:00
Anton Medvedev and GitHub
7cf88c2f5c
Update README.md
2019-10-05 13:38:41 +03:00
Anton Medvedev
b81de7b2b7
Add extra check of correct eval usage
2019-09-26 22:00:31 +03:00
Anton Medvedev and GitHub
e337160b36
Update .travis.yml
2019-09-03 18:53:07 +07:00
Anton Medvedev
f27e96119f
Update docs
2019-08-28 14:39:54 +07:00
Anton Medvedev
344101a638
Fix func doc type
2019-08-26 19:01:48 +07:00
Anton Medvedev
79125033e5
Skip xxx
2019-08-26 18:53:51 +07:00
Anton Medvedev
bdb0c89656
Improve docgen
2019-08-26 18:51:28 +07:00
Anton Medvedev and GitHub
052d7f6b13
Update README.md
2019-08-26 12:56:42 +07:00
Anton Medvedev
f58b94ef0f
Add docgen from map
2019-08-26 12:48:17 +07:00
Anton Medvedev
9aac713478
Add docgen
2019-08-26 11:34:51 +07:00
cameronhatfield and Anton Medvedev
d82a4f5a03
Update Getting-Started.md
...
Corrected a spelling error with request.
2019-08-21 13:36:27 +07:00
Dean McNamee and Anton Medvedev
664b781db1
runtime: Add benchmarks demonstrating pathological copy behaviour.
2019-08-19 11:09:24 +07:00
Tim Cooper and Anton Medvedev
0faaf7bcb7
add standard code generation header to vm/helpers.go
2019-08-18 13:57:14 +07:00