Commit Graph

  • 46c1d86221 Fix merge AST with self-contained AST. Stephen Chung 2022-05-20 21:49:27 +08:00
  • 8f73796110 Fix builds. Stephen Chung 2022-05-19 21:49:19 +08:00
  • 130b93d029 Use bit-flags for options. Stephen Chung 2022-05-19 21:40:22 +08:00
  • 42d2718e24 Fix test. Stephen Chung 2022-05-19 16:56:22 +08:00
  • 857ae7a64a Comments update. Stephen Chung 2022-05-19 14:41:48 +08:00
  • dd8c18369b Use call_native_fn. Stephen Chung 2022-05-19 14:36:58 +08:00
  • 47d0d014e3 Reduce cloning. Stephen Chung 2022-05-19 14:32:43 +08:00
  • a53bcc2e1d Add EvalAltResult::IndexNotFound. Stephen Chung 2022-05-19 10:02:12 +08:00
  • 7c8c6659ae Better encapsulate EvalContext. Stephen Chung 2022-05-17 16:21:17 +08:00
  • 591f7d7362 Add tests for index type checks. Stephen Chung 2022-05-17 15:20:32 +08:00
  • 04df4d2547 Fix indexing parsing. Stephen Chung 2022-05-17 11:06:34 +08:00
  • c7aea45d4b Add to_int for decimal. Stephen Chung 2022-05-09 14:20:33 +08:00
  • b4fea634b0 Avoid unnecessary allocations. Stephen Chung 2022-05-07 16:29:20 +08:00
  • 4194e2c048 Refine data structures. Stephen Chung 2022-05-07 15:54:44 +08:00
  • fc64e93b93 Deprecate FnPtr::num_curried. Stephen Chung 2022-05-05 22:30:55 +08:00
  • afc4a35144
    Merge pull request #559 from schungx/master Stephen Chung 2022-05-05 22:22:58 +08:00
  • b23d64bec0 Fix bug with using self-contained AST with call_fn. Stephen Chung 2022-05-05 21:34:15 +08:00
  • 4fff1d8e7f
    Merge pull request #558 from schungx/master Stephen Chung 2022-05-04 09:23:07 +08:00
  • 2a57bd9d25 Mark some types as non_exhaustive. Stephen Chung 2022-05-03 21:55:08 +08:00
  • 516f5a82a0 Use tag for debugger state. Stephen Chung 2022-05-03 21:55:01 +08:00
  • 7d80c438e4
    Merge pull request #557 from schungx/master Stephen Chung 2022-05-03 16:56:52 +08:00
  • 4f74d2f96a Minor cleanup. Stephen Chung 2022-05-02 12:14:53 +08:00
  • c69f98c2c4 Add custom state. Stephen Chung 2022-05-02 00:03:45 +08:00
  • 98e0042214 Fix build. Stephen Chung 2022-04-26 18:32:43 +08:00
  • 2889ca0988 Add Start/End to DebuggerEvent. Stephen Chung 2022-04-26 16:36:24 +08:00
  • 34dfe841cd Add commands to rhai-dbg. Stephen Chung 2022-04-24 16:06:11 +08:00
  • 5a756e0899 Remove generics for call_fn_raw_raw. Stephen Chung 2022-04-23 15:25:00 +08:00
  • ba475a7ad4
    Merge pull request #555 from schungx/master Stephen Chung 2022-04-23 14:02:19 +08:00
  • 1d904f4758 Add Engine::eval_statements_raw. Stephen Chung 2022-04-23 13:37:08 +08:00
  • 0ef5c0ec54 Change to call_fn_raw_raw. Stephen Chung 2022-04-23 13:28:26 +08:00
  • d61f7fa7c2 Add call_fn_with_global_raw. Stephen Chung 2022-04-23 13:15:27 +08:00
  • 63592ed648 Remove Clone from FileModuleResolver. Stephen Chung 2022-04-23 12:49:03 +08:00
  • c2a796f9c2 Replace Scope display code. Stephen Chung 2022-04-23 11:53:34 +08:00
  • 5a75479119 Fix bug in Scope cloning. Stephen Chung 2022-04-23 11:53:17 +08:00
  • 71bc605fe6 Add scope to FileModuleResolver. Stephen Chung 2022-04-22 13:39:51 +08:00
  • 2755d39cdf Return early if no type casting for call_fn. Stephen Chung 2022-04-22 12:12:55 +08:00
  • a6c2c00479 Allow variables in scope for strict vars. Stephen Chung 2022-04-22 12:12:36 +08:00
  • cfc02b9408
    Merge pull request #554 from schungx/master Stephen Chung 2022-04-21 16:16:16 +08:00
  • 6f4cc91451 Fix builds. Stephen Chung 2022-04-21 16:01:20 +08:00
  • 6b8ddd925b Allow scope constants in strict variables mode. Stephen Chung 2022-04-21 13:21:53 +08:00
  • c3d013bddc Add to_json for maps. Stephen Chung 2022-04-21 12:15:21 +08:00
  • 4f2764d233 Revise parse_json. Stephen Chung 2022-04-21 10:04:57 +08:00
  • 5e4f27ae25 Add Token::Unit. Stephen Chung 2022-04-21 10:04:46 +08:00
  • 299d6ef308 Type checking in switch case condition. Stephen Chung 2022-04-19 21:45:11 +08:00
  • 770b2e04cc Simplify switch condition. Stephen Chung 2022-04-19 16:20:43 +08:00
  • 40c4906336 Make Module::eval_ast_as_new_raw public. Stephen Chung 2022-04-19 08:28:59 +08:00
  • f9ee0c29be Fix builds. Stephen Chung 2022-04-18 23:24:08 +08:00
  • 60a933862e Streamline op-assignments. Stephen Chung 2022-04-18 23:12:47 +08:00
  • 3f74e5e674 Use &Path as source path. Stephen Chung 2022-04-18 17:34:53 +08:00
  • daf73d5341 Make caches optional for EvalContext. Stephen Chung 2022-04-16 23:32:14 +08:00
  • 855cb76246 Rename EvalState to Caches. Stephen Chung 2022-04-16 16:36:53 +08:00
  • a259dc1e0d
    Merge pull request #552 from schungx/master Stephen Chung 2022-04-14 23:16:05 +08:00
  • b696390c13 Fix no-std build. Stephen Chung 2022-04-14 23:11:36 +08:00
  • 3ff1ce0a19 Fix compound assignments with indexers. Stephen Chung 2022-04-14 22:55:39 +08:00
  • 7788e1058a Merge use. Stephen Chung 2022-04-13 10:35:10 +08:00
  • c5015d5e86 Bump version. Stephen Chung 2022-04-11 16:53:44 +08:00
  • 1616541df4
    Merge pull request #550 from schungx/master Stephen Chung 2022-04-11 16:51:21 +08:00
  • a33e3ba5ff Fix build. Stephen Chung 2022-04-11 16:34:56 +08:00
  • 06608affc5 Fix rustyline patch. Stephen Chung 2022-04-11 16:32:23 +08:00
  • 63359f3f81 Unused parameters naming. Stephen Chung 2022-04-11 16:29:16 +08:00
  • 1777ee7f6f Allow strings to be iterable. Stephen Chung 2022-04-09 13:37:43 +08:00
  • 6422fddd6d Better names for iterators. Stephen Chung 2022-04-09 13:11:32 +08:00
  • 8bd33d7b34 Change string splitting. Stephen Chung 2022-04-09 13:07:42 +08:00
  • 42f977862f Add Dynamic parameters to qualified function calls. Stephen Chung 2022-04-08 11:27:52 +08:00
  • 6481e19673 Fix test results. Stephen Chung 2022-04-06 17:48:34 +08:00
  • 89ed531363 Fix doc tests. Stephen Chung 2022-04-06 17:25:04 +08:00
  • 22f831e5bd Add forum badge. Stephen Chung 2022-03-30 22:42:51 +08:00
  • 5d00ab85ee Move rustyline patch to [patch] section. Stephen Chung 2022-03-30 12:08:30 +08:00
  • 6f4240ed5a Add examples to Module custom type API. Stephen Chung 2022-03-30 10:33:43 +08:00
  • 22081850a9 Bump version. Stephen Chung 2022-03-30 08:09:41 +08:00
  • c646b3efa2 Update codegen version. Stephen Chung 2022-03-30 08:09:06 +08:00
  • 0e4f1f1447 Update log. Stephen Chung 2022-03-30 08:06:19 +08:00
  • 82cc4b5553
    Merge pull request #545 from schungx/master Stephen Chung 2022-03-29 08:54:21 +08:00
  • a268105354 Revert "Remove unnecessary call site resolution." Stephen Chung 2022-03-29 08:34:02 +08:00
  • 56f6b181db Move optimization_level into Options. Stephen Chung 2022-03-29 08:26:42 +08:00
  • 1b6de25007 Remove Engine::custom_types. Stephen Chung 2022-03-29 08:18:20 +08:00
  • 2b9b84a764 Bump Rhai version requirement. Stephen Chung 2022-03-28 23:24:56 +08:00
  • f9250fb053 Remove unnecessary call site resolution. Stephen Chung 2022-03-28 23:22:17 +08:00
  • 95753bb9c3 Use global module constants in optimization. Stephen Chung 2022-03-28 12:53:52 +08:00
  • 42b6796200 Fix no-std build. Stephen Chung 2022-03-28 12:53:49 +08:00
  • 6369fa5c65 Minor refactor. Stephen Chung 2022-03-27 21:53:50 +08:00
  • 5caf20d26b Search for global variables in global modules. Stephen Chung 2022-03-27 21:49:34 +08:00
  • 2b10c33b81 Write JSON metadata to file for repl. Stephen Chung 2022-03-26 18:19:42 +08:00
  • 77c06b94a2 Use SmartString for comments. Stephen Chung 2022-03-25 08:52:53 +08:00
  • cad4c7a942 Add starts_with and ends_with for strings. Stephen Chung 2022-03-23 14:28:45 +08:00
  • 99118fe2c3 Minor refactors. Stephen Chung 2022-03-20 21:58:43 +08:00
  • d5083bcffd
    Merge pull request #542 from schungx/master Stephen Chung 2022-03-19 10:42:09 +08:00
  • 1b3d5aeb53 fix no_module. Stephen Chung 2022-03-19 10:29:21 +08:00
  • fefa633cf0 Add type alias support for plugin modules. Stephen Chung 2022-03-19 09:43:18 +08:00
  • 6546eae95f Fix macro hygene. Stephen Chung 2022-03-18 17:51:04 +08:00
  • 0603b2b1cc
    Merge pull request #541 from schungx/master Stephen Chung 2022-03-18 17:46:03 +08:00
  • d01a6d428f Fix tests. Stephen Chung 2022-03-18 17:11:52 +08:00
  • 61ef115ecb Merge branch 'main' of https://github.com/rhaiscript/rhai Stephen Chung 2022-03-18 14:03:29 +08:00
  • 87273c5421
    Merge pull request #540 from petrochenkov/mishygiene Stephen Chung 2022-03-18 13:59:26 +08:00
  • bed3a3dc18 codegen: Fix hygiene mismatch between function args uses and definitions Vadim Petrochenkov 2022-03-17 18:50:46 +03:00
  • dc8c4ed8f4 Improve string functions. Stephen Chung 2022-03-17 17:00:48 +08:00
  • 6223e1a6f1 Fix test output. Stephen Chung 2022-03-14 12:04:24 +08:00
  • 63716759be Fix typo. Stephen Chung 2022-03-14 11:28:52 +08:00
  • a4fbb29740 Add .gitattributes. Stephen Chung 2022-03-14 09:34:28 +08:00
  • 672cda63ab Simplify formatting. Stephen Chung 2022-03-14 08:50:17 +08:00