Commit Graph

  • 1d6b5673d6 Reworked diagnostics, saves line positions in memory, instead of calculating later. Deukhoofd 2019-01-16 23:57:42 +01:00
  • b5bfb7997b Better handling of C# function parameter type checking Deukhoofd 2019-01-16 12:07:40 +01:00
  • 2ef06b3fd7 Make enums be considered userdata, and not numbers. Allow C# functions that consume enums to use both numbers and userdata Deukhoofd 2019-01-16 10:50:22 +01:00
  • 0a034013ea Add Userdata equality operators Deukhoofd 2019-01-14 14:44:31 +01:00
  • 0a8648ce80 Better handling of unknown indexing Deukhoofd 2019-01-14 14:40:16 +01:00
  • cd140603dd Don't try and index a variable we don't know the type of Deukhoofd 2019-01-14 14:30:56 +01:00
  • 11092c11ff Save module dependencies in script, so we can easily read these Deukhoofd 2018-12-14 18:48:53 +01:00
  • e78ad21d0e Allow for clearing a module from cache Deukhoofd 2018-12-14 17:54:35 +01:00
  • 9ca70e8346 Show full path of module directory when module is missing Deukhoofd 2018-12-14 17:51:57 +01:00
  • b2f31490bc Better support for enums Deukhoofd 2018-12-13 21:18:12 +01:00
  • 07043e1ab4 Fixes for binding Deukhoofd 2018-12-13 19:04:23 +01:00
  • 599c535ddd Fixed internal function not binding variables properly Deukhoofd 2018-12-12 22:23:01 +01:00
  • 4b93302c86 Allow setting boundscope Deukhoofd 2018-12-12 20:43:12 +01:00
  • 2bdb469b6f Resolve issue where code wouldnt fully execute Deukhoofd 2018-12-12 17:58:35 +01:00
  • 898a18a60a Bind User Data methods Deukhoofd 2018-12-12 17:28:12 +01:00
  • e741e9c355 Made resolvevariable in binder public static so VS Code extension can use it Deukhoofd 2018-12-12 16:34:47 +01:00
  • a4cdaa5b05 Some initial work for debugging Deukhoofd 2018-12-11 18:31:54 +01:00
  • 590614c34d Handle float --> int conversions more like we'd expect Deukhoofd 2018-12-11 16:10:08 +01:00
  • e57129e116 Work on calling CSharp methods Deukhoofd 2018-12-11 15:50:24 +01:00
  • efea92d32a Make Script conversion at end of execution use Type Binder, general Type Binder fixes Deukhoofd 2018-12-10 17:52:15 +01:00
  • f1d8904ec9 Dont throw an exception if a variable can't be found in a table, instead just return nil Deukhoofd 2018-12-10 17:15:25 +01:00
  • 88e4b92b6a Fixed while/for loops not returning from function Deukhoofd 2018-12-10 17:03:04 +01:00
  • 5646ff1da1 Fixes to the Type Binder and static method handling Deukhoofd 2018-12-09 22:12:03 +01:00
  • 3d9b7a53e9 Changes and tweaks for the binder Deukhoofd 2018-12-09 20:53:07 +01:00
  • 796f82e823 Add binary operators for bool and nil during binding Deukhoofd 2018-12-09 20:05:47 +01:00
  • 1e1fa06d12 Make setting a script variable to nil remove that variable Deukhoofd 2018-12-09 19:02:35 +01:00
  • 0843c9b624 Fix enumerator issue with numerically keyed script tables Deukhoofd 2018-12-09 18:42:41 +01:00
  • ff9eac888f Reworked script enumerator to not be overriden by generic enumerator Deukhoofd 2018-12-09 18:23:06 +01:00
  • 50f06f389a Fix passing nil to CSharp functions not returning function Deukhoofd 2018-12-09 18:13:19 +01:00
  • beac043995 Don't reset scope when function is executed Deukhoofd 2018-12-09 17:50:09 +01:00
  • 875525b6be Handle unnamed functions better Deukhoofd 2018-12-09 17:49:54 +01:00
  • 5d7f155550 Handle conversion for enumerables Deukhoofd 2018-12-09 15:51:16 +01:00
  • 74bc57bb1a Fix while loops not breaking Deukhoofd 2018-12-09 14:33:04 +01:00
  • 00cc59dfbd Reworked compatible external function parameters handling Deukhoofd 2018-12-09 14:14:43 +01:00
  • 2e0ac29878 Implements setting to CSHarp lists Deukhoofd 2018-12-09 14:05:17 +01:00
  • b63e8d37b5 Even better equality checking Deukhoofd 2018-12-09 13:47:13 +01:00
  • 6e960e38ff Split script tables in numerically keyed and generically keyed Deukhoofd 2018-12-09 13:23:09 +01:00
  • 2d6e3335aa Adds print basic command Deukhoofd 2018-12-09 13:01:03 +01:00
  • fb2af879c9 Fixes for binder not being able to get proper method Deukhoofd 2018-12-09 12:25:29 +01:00
  • 92586e4939 Fixes for equality Deukhoofd 2018-12-09 11:45:38 +01:00
  • e1b9bb2002 Reworked evaluating of and and or Deukhoofd 2018-12-09 11:29:11 +01:00
  • 422de5d4eb Rework of function calling to handle generics better Deukhoofd 2018-12-09 11:28:27 +01:00
  • 43d9360145 Various changes and tweaks to run better Deukhoofd 2018-12-08 16:18:38 +01:00
  • f6947194b9 Support for easy loading assemblies, and instantly creating enums in the static scope Deukhoofd 2018-12-08 11:30:22 +01:00
  • 986d00b1a0 Handle chained function call expressions Deukhoofd 2018-12-07 20:15:39 +01:00
  • 77be6fd996 Support single quote strings Deukhoofd 2018-12-07 20:15:27 +01:00
  • 2327e18f77 Fixed exception on adding variable to table of which we dont know the context Deukhoofd 2018-12-07 20:07:24 +01:00
  • 229fe3bffa Fixed wrong error location reporting Deukhoofd 2018-12-07 19:29:09 +01:00
  • eb1eb81c1b Implements while loops Deukhoofd 2018-12-07 19:17:49 +01:00
  • fa967383d6 Fix for exception when userdata method call does not exist Deukhoofd 2018-12-07 18:53:56 +01:00
  • e8369bb672 Implements math library Deukhoofd 2018-12-07 18:51:37 +01:00
  • f638c25483 Fixes for binding table contents when binder can't be aware of table contents, such as with CSharp calls Deukhoofd 2018-12-07 18:23:50 +01:00
  • bbab802f2d Fixes for binding userdata method types Deukhoofd 2018-12-07 18:15:17 +01:00
  • 99ac02924b Handle overloads better Deukhoofd 2018-12-07 16:51:17 +01:00
  • ac05647d71 Reworked script function attribute, added initial math library Deukhoofd 2018-12-07 16:11:52 +01:00
  • 9bd82174f2 Implements remainder and exponent operators Deukhoofd 2018-12-07 15:29:46 +01:00
  • f504a8706e Fix null reference error in evaluator Deukhoofd 2018-12-07 15:17:24 +01:00
  • b0450d3bf5 Show file name in error messages, to handle errors from modules easier Deukhoofd 2018-12-07 14:51:02 +01:00
  • edd352e62a Better error reporting if unable to find module Deukhoofd 2018-12-07 14:41:19 +01:00
  • c1da2dd5b7 Fix missing span in bad expression syntax Deukhoofd 2018-12-07 14:36:44 +01:00
  • 247ac10f17 Fixed BadExpression throwing exceptions Deukhoofd 2018-12-07 14:08:32 +01:00
  • 97968ef491 Fixed removed constructor that was needed for IDEs Deukhoofd 2018-12-07 14:05:17 +01:00
  • e48a89e70d Changed how modules bind so that they can override existing variables Deukhoofd 2018-12-07 13:51:43 +01:00
  • 98e5c1c136 Reworked modules, they now should bind properly Deukhoofd 2018-12-07 13:49:51 +01:00
  • 1caf8320b3 Fixed issue with no parameter funcs Deukhoofd 2018-12-06 16:25:06 +01:00
  • 4054f1d383 Fixed static scope loader not deriving types properly Deukhoofd 2018-12-06 16:06:42 +01:00
  • 81cd22ce28 Support for generic Actions Deukhoofd 2018-12-06 15:45:19 +01:00
  • 7996420ee5 Fixes for require Deukhoofd 2018-12-06 15:32:07 +01:00
  • 520cd1ffcc Initial support for generic funcs Deukhoofd 2018-12-05 17:20:28 +01:00
  • 587c8dfff3 Minor cleanup Deukhoofd 2018-12-05 15:18:41 +01:00
  • 8034a11fe3 Support for Enums Deukhoofd 2018-12-05 15:14:31 +01:00
  • 5b0ce2e52c General fixes tweaks and things Deukhoofd 2018-12-03 18:32:27 +01:00
  • 6ba3860e84 Implement number comparison operators Deukhoofd 2018-12-03 16:05:14 +01:00
  • a9f4ef1b65 Bind whether a variable symbol is a creation statement or just changing the variable Deukhoofd 2018-12-02 17:26:23 +01:00
  • 07a71129a2 Make a literal expression public Deukhoofd 2018-12-01 13:39:39 +01:00
  • 3867ae77ea Support ScriptType as parameter Deukhoofd 2018-11-30 16:51:18 +01:00
  • 2a0cce9bac Fixed function parameter type not setting properly when unbound Deukhoofd 2018-11-30 16:48:38 +01:00
  • 00178cfa82 Handling for type checking parameters of internal functions Deukhoofd 2018-11-30 16:19:25 +01:00
  • f08d1c2541 Reworked function handling, support for type checking internal CSharp functions Deukhoofd 2018-11-30 15:28:36 +01:00
  • 81a6b05b26 Actually pass script reference if requested Deukhoofd 2018-11-30 12:09:06 +01:00
  • 1243492453 Adds comments to basic library functions Deukhoofd 2018-11-30 12:07:18 +01:00
  • 1f1b8c621e changed parameters for require function Deukhoofd 2018-11-30 11:51:22 +01:00
  • 9e27778af1 Support for passing Script reference to functions. useful when options are required for function Deukhoofd 2018-11-30 11:31:45 +01:00
  • 3a3ed071d2 Move ScriptFunctions to own namespace Deukhoofd 2018-11-30 11:15:52 +01:00
  • 9455b753a0 Resolved UserData not binding proper type when multiple index expressions are chained Deukhoofd 2018-11-30 11:12:10 +01:00
  • a4ad57e3f7 Better support for userdata bound types Deukhoofd 2018-11-29 20:45:59 +01:00
  • 4fa0ad9f70 Log error if using full stop indexer on userdata type when the indexer doesn't exist Deukhoofd 2018-11-29 19:10:03 +01:00
  • f983239b5a Bind indexing of userdata Deukhoofd 2018-11-29 18:09:08 +01:00
  • c1f4c8fb37 Fixes tests Deukhoofd 2018-11-28 21:28:01 +01:00
  • af0ff235e1 Fixes script --> C# function calls not working Deukhoofd 2018-11-28 21:23:08 +01:00
  • babbf2875f Type check when calling script function from CSharp Deukhoofd 2018-11-28 20:53:45 +01:00
  • ba82b28ee4 Validate function call parameter types Deukhoofd 2018-11-28 16:47:52 +01:00
  • a64df2ff6b Add spans to parameterTokens Deukhoofd 2018-11-28 16:23:45 +01:00
  • 27a7465961 Adds basics for predefined function parameter types Deukhoofd 2018-11-28 16:18:56 +01:00
  • 062f0f84ad Allow for empty return expressions Deukhoofd 2018-11-28 14:31:40 +01:00
  • cefe48cb4b Handle empty return statements Deukhoofd 2018-11-28 14:13:39 +01:00
  • cc029d0689 Handle binding unbound functions later better Deukhoofd 2018-11-28 13:36:20 +01:00
  • 576273ac56 Better support for binding functions, specifically nested functions Deukhoofd 2018-11-28 13:30:24 +01:00
  • 71397f5db2 Bind return type from a function to a variable Deukhoofd 2018-11-28 12:54:18 +01:00
  • dbc7b4eb4f Add warnings when variable types are unknown Deukhoofd 2018-11-28 12:11:09 +01:00