Commit Graph

206 Commits

Author SHA1 Message Date
Deukhoofd 4b93302c86
Allow setting boundscope 2018-12-12 20:43:12 +01:00
Deukhoofd 2bdb469b6f
Resolve issue where code wouldnt fully execute 2018-12-12 17:58:35 +01:00
Deukhoofd 898a18a60a
Bind User Data methods 2018-12-12 17:28:12 +01:00
Deukhoofd e741e9c355
Made resolvevariable in binder public static so VS Code extension can use it 2018-12-12 16:34:47 +01:00
Deukhoofd a4cdaa5b05
Some initial work for debugging 2018-12-11 18:31:54 +01:00
Deukhoofd 590614c34d
Handle float --> int conversions more like we'd expect 2018-12-11 16:10:08 +01:00
Deukhoofd e57129e116
Work on calling CSharp methods 2018-12-11 15:50:24 +01:00
Deukhoofd efea92d32a
Make Script conversion at end of execution use Type Binder, general Type Binder fixes 2018-12-10 17:52:15 +01:00
Deukhoofd f1d8904ec9
Dont throw an exception if a variable can't be found in a table, instead just return nil 2018-12-10 17:15:25 +01:00
Deukhoofd 88e4b92b6a
Fixed while/for loops not returning from function 2018-12-10 17:03:04 +01:00
Deukhoofd 5646ff1da1
Fixes to the Type Binder and static method handling 2018-12-09 22:12:03 +01:00
Deukhoofd 3d9b7a53e9
Changes and tweaks for the binder 2018-12-09 20:53:07 +01:00
Deukhoofd 796f82e823
Add binary operators for bool and nil during binding 2018-12-09 20:05:47 +01:00
Deukhoofd 1e1fa06d12
Make setting a script variable to nil remove that variable 2018-12-09 19:02:35 +01:00
Deukhoofd 0843c9b624
Fix enumerator issue with numerically keyed script tables 2018-12-09 18:42:41 +01:00
Deukhoofd ff9eac888f
Reworked script enumerator to not be overriden by generic enumerator 2018-12-09 18:23:06 +01:00
Deukhoofd 50f06f389a
Fix passing nil to CSharp functions not returning function 2018-12-09 18:13:19 +01:00
Deukhoofd beac043995
Don't reset scope when function is executed 2018-12-09 17:50:09 +01:00
Deukhoofd 875525b6be
Handle unnamed functions better 2018-12-09 17:49:54 +01:00
Deukhoofd 5d7f155550
Handle conversion for enumerables 2018-12-09 15:51:16 +01:00
Deukhoofd 74bc57bb1a
Fix while loops not breaking 2018-12-09 14:33:04 +01:00
Deukhoofd 00cc59dfbd
Reworked compatible external function parameters handling 2018-12-09 14:14:43 +01:00
Deukhoofd 2e0ac29878
Implements setting to CSHarp lists 2018-12-09 14:05:17 +01:00
Deukhoofd b63e8d37b5
Even better equality checking 2018-12-09 13:47:13 +01:00
Deukhoofd 6e960e38ff
Split script tables in numerically keyed and generically keyed 2018-12-09 13:23:09 +01:00
Deukhoofd 2d6e3335aa
Adds print basic command 2018-12-09 13:01:03 +01:00
Deukhoofd fb2af879c9
Fixes for binder not being able to get proper method 2018-12-09 12:25:29 +01:00
Deukhoofd 92586e4939
Fixes for equality 2018-12-09 11:45:38 +01:00
Deukhoofd e1b9bb2002
Reworked evaluating of and and or 2018-12-09 11:29:11 +01:00
Deukhoofd 422de5d4eb
Rework of function calling to handle generics better 2018-12-09 11:28:27 +01:00
Deukhoofd 43d9360145
Various changes and tweaks to run better 2018-12-08 16:18:38 +01:00
Deukhoofd f6947194b9
Support for easy loading assemblies, and instantly creating enums in the static scope 2018-12-08 11:30:22 +01:00
Deukhoofd 986d00b1a0
Handle chained function call expressions 2018-12-07 20:15:39 +01:00
Deukhoofd 77be6fd996
Support single quote strings 2018-12-07 20:15:27 +01:00
Deukhoofd 2327e18f77
Fixed exception on adding variable to table of which we dont know the context 2018-12-07 20:07:24 +01:00
Deukhoofd 229fe3bffa
Fixed wrong error location reporting 2018-12-07 19:29:09 +01:00
Deukhoofd eb1eb81c1b
Implements while loops 2018-12-07 19:17:49 +01:00
Deukhoofd fa967383d6
Fix for exception when userdata method call does not exist 2018-12-07 18:53:56 +01:00
Deukhoofd e8369bb672
Implements math library 2018-12-07 18:51:37 +01:00
Deukhoofd f638c25483
Fixes for binding table contents when binder can't be aware of table contents, such as with CSharp calls 2018-12-07 18:23:50 +01:00
Deukhoofd bbab802f2d
Fixes for binding userdata method types 2018-12-07 18:15:17 +01:00
Deukhoofd 99ac02924b
Handle overloads better 2018-12-07 16:51:17 +01:00
Deukhoofd ac05647d71
Reworked script function attribute, added initial math library 2018-12-07 16:11:52 +01:00
Deukhoofd 9bd82174f2
Implements remainder and exponent operators 2018-12-07 15:29:46 +01:00
Deukhoofd f504a8706e
Fix null reference error in evaluator 2018-12-07 15:17:24 +01:00
Deukhoofd b0450d3bf5
Show file name in error messages, to handle errors from modules easier 2018-12-07 14:51:02 +01:00
Deukhoofd edd352e62a
Better error reporting if unable to find module 2018-12-07 14:41:19 +01:00
Deukhoofd c1da2dd5b7
Fix missing span in bad expression syntax 2018-12-07 14:36:44 +01:00
Deukhoofd 247ac10f17
Fixed BadExpression throwing exceptions 2018-12-07 14:08:32 +01:00
Deukhoofd 97968ef491
Fixed removed constructor that was needed for IDEs 2018-12-07 14:05:17 +01:00