Commit Graph

106 Commits

Author SHA1 Message Date
Deukhoofd fcd26f4cc0
Remove test exception 2019-01-19 14:18:43 +01:00
Deukhoofd e44116b2cd
Don't allow using indexing to access local variables 2019-01-19 14:12:16 +01:00
Deukhoofd bee6fad947
Fix complex table/function variable handling 2019-01-18 16:41:03 +01:00
Deukhoofd f55e6d314d
Rework type binding to allow for type awareness in iterators 2019-01-18 16:09:36 +01:00
Deukhoofd c1fd6081fd
Better handling of finding bottom node 2019-01-17 18:34:58 +01:00
Deukhoofd f903a3ca58
Better error reporter 2019-01-17 17:48:10 +01:00
Deukhoofd 0a8648ce80
Better handling of unknown indexing 2019-01-14 14:40:16 +01:00
Deukhoofd cd140603dd
Don't try and index a variable we don't know the type of 2019-01-14 14:30:56 +01:00
Deukhoofd 11092c11ff
Save module dependencies in script, so we can easily read these 2018-12-14 18:48:53 +01:00
Deukhoofd 9ca70e8346
Show full path of module directory when module is missing 2018-12-14 17:51:57 +01:00
Deukhoofd 07043e1ab4
Fixes for binding 2018-12-13 19:04:23 +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 43d9360145
Various changes and tweaks to run better 2018-12-08 16:18:38 +01:00
Deukhoofd 986d00b1a0
Handle chained function call expressions 2018-12-07 20:15:39 +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 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 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 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 247ac10f17
Fixed BadExpression throwing exceptions 2018-12-07 14:08:32 +01:00
Deukhoofd e48a89e70d
Changed how modules bind so that they can override existing variables 2018-12-07 13:51:43 +01:00
Deukhoofd 98e5c1c136
Reworked modules, they now should bind properly 2018-12-07 13:49:51 +01:00
Deukhoofd 5b0ce2e52c
General fixes tweaks and things 2018-12-03 18:32:27 +01:00
Deukhoofd a9f4ef1b65
Bind whether a variable symbol is a creation statement or just changing the variable 2018-12-02 17:26:23 +01:00
Deukhoofd f08d1c2541
Reworked function handling, support for type checking internal CSharp functions 2018-11-30 15:28:36 +01:00
Deukhoofd 9455b753a0
Resolved UserData not binding proper type when multiple index expressions are chained 2018-11-30 11:12:10 +01:00
Deukhoofd a4ad57e3f7
Better support for userdata bound types 2018-11-29 20:45:59 +01:00
Deukhoofd 4fa0ad9f70
Log error if using full stop indexer on userdata type when the indexer doesn't exist 2018-11-29 19:10:03 +01:00
Deukhoofd f983239b5a
Bind indexing of userdata 2018-11-29 18:09:08 +01:00
Deukhoofd c1f4c8fb37
Fixes tests 2018-11-28 21:28:01 +01:00
Deukhoofd af0ff235e1
Fixes script --> C# function calls not working 2018-11-28 21:23:08 +01:00
Deukhoofd babbf2875f
Type check when calling script function from CSharp 2018-11-28 20:53:45 +01:00
Deukhoofd ba82b28ee4
Validate function call parameter types 2018-11-28 16:47:52 +01:00
Deukhoofd 27a7465961
Adds basics for predefined function parameter types 2018-11-28 16:18:56 +01:00
Deukhoofd cefe48cb4b
Handle empty return statements 2018-11-28 14:13:39 +01:00
Deukhoofd cc029d0689
Handle binding unbound functions later better 2018-11-28 13:36:20 +01:00
Deukhoofd 576273ac56
Better support for binding functions, specifically nested functions 2018-11-28 13:30:24 +01:00
Deukhoofd 71397f5db2
Bind return type from a function to a variable 2018-11-28 12:54:18 +01:00
Deukhoofd dbc7b4eb4f
Add warnings when variable types are unknown 2018-11-28 12:11:09 +01:00
Deukhoofd 7ee230e20c
Handle warnings, and add a warning if a function parameter has an unknown type 2018-11-28 10:56:35 +01:00
Deukhoofd 14e30d0855
Support for getting a bound scope at a specific character position 2018-11-27 19:04:58 +01:00
Deukhoofd 8ece53db5b
Reworked handling of getting bottom node. Now uses an iterator to iterate from bottom to top nodes 2018-11-27 18:38:28 +01:00
Deukhoofd 160ed60cc2
Fix index error on userdata 2018-11-27 17:40:13 +01:00
Deukhoofd 16e1cde5c6
More work on binding table variables 2018-11-27 15:49:44 +01:00
Deukhoofd a0861e090f
Work on type checking variables when getting them from tables 2018-11-27 14:37:58 +01:00
Deukhoofd dca8773e54
Allow accessing variables inside a table from the variable symbol 2018-11-27 14:15:45 +01:00
Deukhoofd b7d01b02f1
Exception throwing when required, and fixes for unit tests 2018-11-26 17:23:56 +01:00