Commit Graph

  • a32b76d904 Fixed error string from userdata return values not persisting long enough. master Deukhoofd 2019-09-28 13:35:32 +02:00
  • f8cbe502c9 Better handling of userdata exceptions in other languages. Deukhoofd 2019-09-28 13:08:32 +02:00
  • e7e5e64bbb Separate userdata collection handling Deukhoofd 2019-09-28 12:03:50 +02:00
  • 326a3c097a Fix Tree String tests Deukhoofd 2019-09-22 17:41:18 +02:00
  • 30d82085cc Implements exponent and modulus operators Deukhoofd 2019-09-22 17:38:17 +02:00
  • de39464b33 Fixed not being able to set to a string indexed userdata value. Deukhoofd 2019-09-22 17:09:14 +02:00
  • eacdb8a593 Add information about whether we know a numeric script type is a float in GetBoundTreeString() Deukhoofd 2019-09-22 16:46:31 +02:00
  • 7bca80092d Dont evaluate right hand side of Logical Or if left hand is true. Deukhoofd 2019-09-22 16:30:56 +02:00
  • 256244eabb Fixes for setting to tables not working properly Deukhoofd 2019-09-22 15:20:22 +02:00
  • 62be1c78f3 Allow nil to be set to nullable types Deukhoofd 2019-09-22 15:19:58 +02:00
  • 2cd787c536 Support "next" statement, skipping the remainder of the loop block. Deukhoofd 2019-09-22 13:49:37 +02:00
  • f4277d47c3 extern C entry point to check if NumericEvalValue is float or int Deukhoofd 2019-09-22 13:30:25 +02:00
  • 8dcf31cb40 Extern support for getting data from Table EvalValues Deukhoofd 2019-09-22 11:11:22 +02:00
  • 74d23530a1 Speed up parser by allocating more space for its statements initially. Deukhoofd 2019-09-21 09:52:22 +02:00
  • 0d59a1d029 Speed up lexer by allocating more space for its tokens initially. Deukhoofd 2019-09-20 18:51:31 +02:00
  • 0763ebbad0 Dont allow setting to a userdata field if it has no setter Deukhoofd 2019-09-20 18:15:48 +02:00
  • 99c91164be Fixed issue where attempting setting to a non existing field on userdata would crash. Deukhoofd 2019-09-19 15:27:31 +02:00
  • 8c13c2c84c Fix issues with casting when type is the same. Deukhoofd 2019-09-19 14:54:18 +02:00
  • a7fee1437c Add missing switch statement for Count unary operation to string Deukhoofd 2019-09-19 13:28:32 +02:00
  • 454c0c581d Fixes setting CMAKE_C_COMPILER flag being ignored Deukhoofd 2019-09-19 12:29:56 +02:00
  • 4eea5a7007 Use Clang as default compiler Deukhoofd 2019-09-19 12:00:48 +02:00
  • 24923deed0 Fixes and improvements for new table system Deukhoofd 2019-09-19 11:28:00 +02:00
  • 6c6d977000 Union with shared_ptr caused a memory leak. Prevent this using std::variant Deukhoofd 2019-09-19 11:02:59 +02:00
  • 458274f370 Large rework of tables Deukhoofd 2019-09-15 13:08:11 +02:00
  • e89782f921 Make numerical table type countable Deukhoofd 2019-09-14 13:19:52 +02:00
  • 98b605a18b Fixes for implicit casting when assigning variables Deukhoofd 2019-09-14 11:44:43 +02:00
  • 54778adf82 Allow variables be assigned to other types if they are implicitly castable Deukhoofd 2019-09-14 11:14:50 +02:00
  • 9520b98f2e Better handling of return followed by end keyword Deukhoofd 2019-09-14 11:05:10 +02:00
  • e75d13f509 Fixed return followed by end keyword log an error Deukhoofd 2019-09-14 10:45:32 +02:00
  • 12c55a12ba Cleanup of Parsed Expression classes Deukhoofd 2019-09-14 10:39:31 +02:00
  • b462c1b873 Fixes empty script returning segmentation fault Deukhoofd 2019-09-14 10:35:32 +02:00
  • 45d3bc690b Extern C support for registering function overloads Deukhoofd 2019-09-14 10:19:56 +02:00
  • 3a9f1f976a Fix modules without return type throwing segmentation fault Deukhoofd 2019-09-12 21:50:48 +02:00
  • 80f3af22ac Fix single item numerical tables being parsed as complex tables Deukhoofd 2019-09-12 20:57:53 +02:00
  • 0266b3c616 Better error handling for extern functions that retrieve userdata Deukhoofd 2019-09-12 20:42:18 +02:00
  • bae3e92577 Better error handling when variable is not found Deukhoofd 2019-09-12 18:25:18 +02:00
  • 73142afa8a Support for length unary operator Deukhoofd 2019-09-12 18:19:06 +02:00
  • bd9eac9056 Better diagnostics for CantIndex error message Deukhoofd 2019-09-12 17:16:11 +02:00
  • ff4af34478 Userdata equality should always be valid to check, even when no explicit operator is given for it Deukhoofd 2019-09-12 17:10:44 +02:00
  • bd343c1b7e Allows userdata binary operations to be set externally Deukhoofd 2019-09-12 15:21:10 +02:00
  • b94c811e94 Support Any type in function parameters Deukhoofd 2019-09-12 13:26:59 +02:00
  • eca0c6b075 Work on userdata binary operations Deukhoofd 2019-09-08 13:53:24 +02:00
  • 85936f3d68 Fix Key Identifier and Value identifier in generic for loop using same type for debug string Deukhoofd 2019-09-07 15:38:03 +02:00
  • 8f078e580e Include type in BoundVariableKey for debugging purposes Deukhoofd 2019-09-07 15:33:26 +02:00
  • 629adafeaf Include Userdata string key in userdata object for debugging Deukhoofd 2019-09-07 15:22:24 +02:00
  • bd054b1077 Fixed right hand in Logical And operation being evaluated when left hand was false Deukhoofd 2019-09-07 13:52:44 +02:00
  • fab2c9eabd Require explicit inequality as well as equality operators on evalvalues Deukhoofd 2019-09-07 13:28:25 +02:00
  • d8c67f2dde Even better exception handling when we can't index an evalvalue Deukhoofd 2019-09-07 13:21:35 +02:00
  • 2e1bdcf3a4 Better error handling when unable to index an eval value Deukhoofd 2019-09-07 13:04:42 +02:00
  • 5c63b15ab7 Display whether an assignment is to a local or global variable Deukhoofd 2019-09-07 12:48:17 +02:00
  • dd98a34b63 Fixed missing endlines between parameters in function calls Deukhoofd 2019-09-07 12:32:42 +02:00
  • 1235e8893f Fixes trailing endline in numerical table to string Deukhoofd 2019-09-07 12:30:30 +02:00
  • da4258506e Support for retrieving bound tree string from script objecsts Deukhoofd 2019-09-07 12:12:37 +02:00
  • acc687f213 Cleanup of main script type class Deukhoofd 2019-09-07 11:16:12 +02:00
  • 5d700aa0e9 Greatly simplify handling numerical eval values, using std::variant Deukhoofd 2019-09-07 10:57:09 +02:00
  • 7b5d03ed74 Tests for debug strings for many expressions Deukhoofd 2019-09-05 17:55:00 +02:00
  • f547715842 Fixes and tests for function declaration to string Deukhoofd 2019-09-05 16:41:12 +02:00
  • 256969e912 Some fixes for statements to string, added more tests Deukhoofd 2019-09-05 12:22:10 +02:00
  • fb142c7f25 Fixed Windows issue Deukhoofd 2019-09-05 10:59:01 +02:00
  • b6b1496e82 Hopefully resolve Windows issue with symver attributes Deukhoofd 2019-09-02 20:58:18 +02:00
  • 8bdc1ccfc7 Fixed memory leak in test cases Deukhoofd 2019-09-02 20:49:45 +02:00
  • d21cfeaac8 Added support for creating a string outline of a bound script for debugging purposes Deukhoofd 2019-09-02 20:48:52 +02:00
  • e0941a9db8 Handle comments Deukhoofd 2019-09-01 20:18:32 +02:00
  • 0e9c9abf7c Implements unknown types Deukhoofd 2019-09-01 20:07:09 +02:00
  • 01e5441d62 Make nil equivalent type to string and userdata Deukhoofd 2019-09-01 17:10:03 +02:00
  • 2fbe1fdf09 Dont use cached version of NumericScriptType with extern, this causes issues Deukhoofd 2019-09-01 16:51:26 +02:00
  • cf1daf7805 Handle nil keyword Deukhoofd 2019-09-01 16:16:36 +02:00
  • a3e77f650a Improved performance when binding by reusing many common scripttype objects Deukhoofd 2019-09-01 15:35:45 +02:00
  • 79873d9d6a Support for setting userdata casting handling Deukhoofd 2019-09-01 13:35:13 +02:00
  • b2ee008ba2 Fix Windows version not allowing us to change GLIBC version for functions Deukhoofd 2019-08-25 18:22:32 +02:00
  • b3eee4e89a Enforce older versions of libm for several math libraries to ensure compatibility Deukhoofd 2019-08-25 17:58:57 +02:00
  • f5bfd9c710 Extern C support for creating NilEvalValue Deukhoofd 2019-08-25 12:38:36 +02:00
  • 4c97a7c811 Handling for when userdata is not defined yet, but might be defined later Deukhoofd 2019-08-25 11:53:37 +02:00
  • 5b7da77027 Improvements for extern C scriptoptions calling Deukhoofd 2019-08-24 18:52:11 +02:00
  • df755fcdd3 General fixes for ScriptOptions Deukhoofd 2019-08-24 16:11:09 +02:00
  • e913f8d052 Allow passing custom scriptoptions Deukhoofd 2019-08-24 15:12:09 +02:00
  • 1fcde396c3 Added mutex locks on static variables such as static scope and userdata, that could be shared around threads Deukhoofd 2019-08-24 15:11:53 +02:00
  • 18ffe00bc4 Fix SIGSEV with malformed functions Deukhoofd 2019-08-24 13:54:01 +02:00
  • 8103099287 Add extern C function to clone scripts Deukhoofd 2019-08-21 10:34:10 +02:00
  • faa3000d95 Fixed issue where an indexer followed by a binary operator would ignore the binary Deukhoofd 2019-08-18 15:44:55 +02:00
  • b4897c77ec Adds localized error messages Deukhoofd 2019-08-18 15:29:52 +02:00
  • 184ef8ec9a Added extern C support for registering static variables Deukhoofd 2019-08-18 15:09:44 +02:00
  • e939920e5c Support for explicit casting Deukhoofd 2019-08-18 14:32:14 +02:00
  • 1d72e2eccd Better handling of casting Deukhoofd 2019-08-18 13:17:53 +02:00
  • 0fde3d46df Initial work on implicit casting when calling a function Deukhoofd 2019-08-18 12:13:13 +02:00
  • 61d89bd21b Massively reduce Windows build size (~90% reduction in size) Deukhoofd 2019-08-18 10:57:34 +02:00
  • 2d4d3d8856 Apparently Windows does not handle 'long' the same as Unix. Deukhoofd 2019-08-18 10:30:58 +02:00
  • 86d6d5a9cb Enforce 64 bit for Windows test Deukhoofd 2019-08-17 18:58:43 +02:00
  • e9a3a6b391 Tweak approx of math.log test to handle different architectures Deukhoofd 2019-08-17 18:54:38 +02:00
  • 7675af62de Fully implements math library Deukhoofd 2019-08-17 18:29:02 +02:00
  • 5e96250d96 Implements initial math library, several reworks for Userdata memory management Deukhoofd 2019-08-17 14:42:48 +02:00
  • 13b382def2 Implements most of the remaining core standard functions Deukhoofd 2019-08-15 18:12:29 +02:00
  • 7523fb4294 Extern support for creating iterators Deukhoofd 2019-08-15 16:58:16 +02:00
  • 0d30d788e9 Extern support for getting a userdata type by hash id Deukhoofd 2019-08-15 16:42:18 +02:00
  • 8e64da15a0 Extern support for creating userdata collections Deukhoofd 2019-08-15 15:01:27 +02:00
  • 5b3bc26bdb Fixed tests not passing due to 1-indexed system vs 0-indexed thinking Deukhoofd 2019-08-15 11:53:40 +02:00
  • 471dbac3b9 Implements iterator for user data collection Deukhoofd 2019-08-15 11:43:08 +02:00
  • 5387cd15ff Fix windows build using wrong directory Deukhoofd 2019-08-11 16:49:07 +02:00
  • 36a7fd6739 Fixes for CI Deukhoofd 2019-08-11 16:35:33 +02:00
  • ece9c1f5eb Support for Windows builds Deukhoofd 2019-08-11 16:05:14 +02:00