Commit Graph

  • 52d23522e6 Add for_each for arrays. Stephen Chung 2022-12-25 12:44:49 +0800
  • fd401f3048 Add array API with closure variation that binds to this. Stephen Chung 2022-12-24 19:37:06 +0800
  • ffa1f5fb4a Fix builds. Stephen Chung 2022-12-23 18:54:55 +0800
  • cb09393dba Encapsulate into FlowControl type. Stephen Chung 2022-12-23 14:26:06 +0800
  • 80ccd75514 Satisfy clippy. Stephen Chung 2022-12-22 17:34:58 +0800
  • bbd94dbffb Use document-features. Stephen Chung 2022-12-22 09:33:12 +0800
  • b87243bfe2
    Merge pull request #682 from schungx/master Stephen Chung 2022-12-21 16:42:36 +0800
  • 481546124a Fix builds. Stephen Chung 2022-12-21 13:58:47 +0800
  • 9bf3a9d78f Add Engine::compact_script. Stephen Chung 2022-12-21 13:54:54 +0800
  • d94f362b51 Fix up find/find_map. Stephen Chung 2022-12-20 22:27:29 +0800
  • 6e40215631 Merge branch 'main' of https://github.com/rhaiscript/rhai Stephen Chung 2022-12-20 22:19:11 +0800
  • e467266eb6
    Merge pull request #681 from fabriziosestito/array-find Stephen Chung 2022-12-20 22:18:48 +0800
  • 06b40723e4
    Add array find and find_map methods Fabrizio Sestito 2022-12-20 13:28:24 +0100
  • babc0b5466 Remove Dynamic::NULL, use .as_deref_mut() for this_ptr. Stephen Chung 2022-12-20 16:52:55 +0800
  • 99080be91d Move to FnPtr. Stephen Chung 2022-12-20 14:43:30 +0800
  • cabab14475 Deprecate array methods that take function names as parameters. Stephen Chung 2022-12-19 22:42:21 +0800
  • b880893154 Allow negative shift bits. Stephen Chung 2022-12-18 14:51:38 +0800
  • 3da1d060ec Update test results. Stephen Chung 2022-12-16 11:17:25 +0800
  • e5fc1272ed Use stable for codegen tests. Stephen Chung 2022-12-16 09:59:56 +0800
  • ee53108d3a Fixes Miri faults. Stephen Chung 2022-12-15 22:33:11 +0800
  • da7a887f67 Change to struct variants for better flexibility. Stephen Chung 2022-12-14 12:07:33 +0800
  • 82a455b4d7 Add Dynamic::deep_scan. Stephen Chung 2022-12-13 13:35:23 +0800
  • a88cc35901 Remove t.txt Stephen Chung 2022-12-13 13:34:31 +0800
  • 3cc016b03c Add Index/IndexMut and iter_curry/iter_curry_mut to FnPtr. Stephen Chung 2022-12-13 13:34:17 +0800
  • db7410776a Recursively store encapsulated environment into values. Stephen Chung 2022-12-13 13:06:28 +0800
  • d350a948e7 Allow exporting function pointers from modules. Stephen Chung 2022-12-12 18:31:02 +0800
  • ec5ad320a1 Fix tests. Stephen Chung 2022-12-12 16:17:51 +0800
  • 67a7ab4069 Move encapsulated environment out of ScriptFnDef. Stephen Chung 2022-12-12 16:06:24 +0800
  • 04a963ab41
    Merge pull request #680 from schungx/master Stephen Chung 2022-12-11 22:03:18 +0800
  • 397b5eb39d Move restore up one level. Stephen Chung 2022-12-11 21:50:47 +0800
  • 2c55c248fb Fix builds. Stephen Chung 2022-12-11 17:18:14 +0800
  • 1f815f995f Speed up FnPtr::call when there is a linked scripted function. Stephen Chung 2022-12-11 16:55:30 +0800
  • 91f149270a Add link to scripted function definition. Stephen Chung 2022-12-11 00:08:25 +0800
  • 8bcb771281 Refine auto_restore syntax. Stephen Chung 2022-12-10 22:37:13 +0800
  • f15a9a7c9c Minor cleanup. Stephen Chung 2022-12-09 20:42:55 +0800
  • 30ff208104 Improve reify! syntax. Stephen Chung 2022-12-09 16:41:01 +0800
  • 3d5908480a Use fluent style. Stephen Chung 2022-12-09 10:04:44 +0800
  • a391f26920 Refine expression nesting level. Stephen Chung 2022-12-08 17:18:40 +0800
  • 544b86adef Fix test output. Stephen Chung 2022-12-07 10:06:57 +0800
  • e400b3627c Fix build. Stephen Chung 2022-12-06 23:45:12 +0800
  • 90998f4f14 Allow closures in parse expressions. Stephen Chung 2022-12-06 21:41:38 +0800
  • 252567f84d
    Merge pull request #676 from schungx/master Stephen Chung 2022-12-04 23:11:22 +0800
  • e2bd0705b1 Refine auto_restore syntax. Stephen Chung 2022-12-04 22:47:10 +0800
  • 3163d9d1d6 Fix msrv. Stephen Chung 2022-12-04 16:12:34 +0800
  • de0707f64f Use macro auto_restore!. Stephen Chung 2022-12-04 14:06:54 +0800
  • 58769dbb52 Use unwrap instead of expect. Stephen Chung 2022-12-03 22:55:40 +0800
  • 4998eb6139 Add has_context to plugin functions. Stephen Chung 2022-12-03 17:03:15 +0800
  • 249180b1e0 Fix builds. Stephen Chung 2022-12-03 16:29:19 +0800
  • 55922b5c20 Hard code constant checking. Stephen Chung 2022-12-03 16:20:13 +0800
  • ffc8a7f85c Fix builds. Stephen Chung 2022-12-03 12:08:35 +0800
  • 4e33bcfa0a Use constant booleans for trait. Stephen Chung 2022-12-03 11:23:34 +0800
  • 6e99e391e1 Fix test. Stephen Chung 2022-12-03 10:50:58 +0800
  • 09272d08e9 Add documentation. Stephen Chung 2022-12-03 10:05:15 +0800
  • f41bdb7769 Hard code number of parameters. Stephen Chung 2022-12-03 09:14:16 +0800
  • feb764a203 Fix test. Stephen Chung 2022-12-02 17:37:35 +0800
  • b4278fa251 Fix test. Stephen Chung 2022-12-02 17:09:48 +0800
  • e53be6e8ed Avoid allocations in metadata. Stephen Chung 2022-12-02 16:44:45 +0800
  • e10576abff Process block comments better. Stephen Chung 2022-12-02 14:06:31 +0800
  • eb5b15e954 Capture global module docs in JSON. Stephen Chung 2022-12-01 23:35:26 +0800
  • fcc363af60 Add doc-comments on plugin modules to Module::doc field. Stephen Chung 2022-12-01 23:29:42 +0800
  • ed423740c9 Use FnArgsVec for params. Stephen Chung 2022-12-01 17:45:33 +0800
  • 0c4935febb Merge multiple doc-comment lines into one. Stephen Chung 2022-12-01 14:35:45 +0800
  • 28640a6fe4 code cleanup. Stephen Chung 2022-12-01 14:24:08 +0800
  • acadb58f4f Add short-cut to !. Stephen Chung 2022-11-30 14:11:57 +0800
  • fc4c8731f0 Add !in. Stephen Chung 2022-11-30 14:11:09 +0800
  • c509cc896d Revise documentation. Stephen Chung 2022-11-29 15:50:58 +0800
  • 0c85f0c796 Code cleanup and refactor. Stephen Chung 2022-11-28 23:24:22 +0800
  • 29a397b216 Refine #[must_use] Stephen Chung 2022-11-28 16:36:40 +0800
  • f458f18ffa Refine error message. Stephen Chung 2022-11-27 22:35:17 +0800
  • fcc7589ffc Refine error display. Stephen Chung 2022-11-27 18:00:02 +0800
  • 549193f49b Use operator. Stephen Chung 2022-11-27 17:21:44 +0800
  • 4ab306607d Fix bug. Stephen Chung 2022-11-27 17:21:07 +0800
  • c311758b5c Update benchmark result. Stephen Chung 2022-11-26 13:21:50 +0800
  • e8e1706d98 Use as_deref(). Stephen Chung 2022-11-25 23:03:20 +0800
  • d645d8271c More code refactor. Stephen Chung 2022-11-25 20:42:16 +0800
  • e78c3239f0
    Merge pull request #674 from schungx/master Stephen Chung 2022-11-25 13:59:11 +0800
  • fbe30b8d0e Change debugger init signature. Stephen Chung 2022-11-25 13:20:03 +0800
  • 6db9870fb1 Fix builds. Stephen Chung 2022-11-25 12:27:05 +0800
  • ccc3d51e0f Reduce size of ParseState. Stephen Chung 2022-11-25 12:14:40 +0800
  • ef920e2b8d Factor out metadata in FuncInfo. Stephen Chung 2022-11-25 12:14:37 +0800
  • 0286a52084 Use SusLock to hold pre-calculated indexer hashes. Stephen Chung 2022-11-25 11:49:00 +0800
  • 6600862c22 Satisfy clippy. Stephen Chung 2022-11-25 09:46:13 +0800
  • 2bf8e610a3 Reduce size of Engine. Stephen Chung 2022-11-24 22:58:42 +0800
  • cefe3f1715 Reduce Module size. Stephen Chung 2022-11-24 22:25:19 +0800
  • bda8c2b636 Reduce data sizes. Stephen Chung 2022-11-24 20:35:56 +0800
  • 6c06481457 Fix typo. Stephen Chung 2022-11-24 17:16:12 +0800
  • c9d8714fe6 Reduce size of ParseState. Stephen Chung 2022-11-24 17:08:43 +0800
  • b4ef89b596 Fix sync build. Stephen Chung 2022-11-24 16:05:23 +0800
  • d1913edf3c Use Engine's interner. Stephen Chung 2022-11-24 15:10:17 +0800
  • 6791ef64da Remove crate:: from types. Stephen Chung 2022-11-24 11:00:47 +0800
  • b1e8b48471 Remove extra clippy. Stephen Chung 2022-11-23 18:51:11 +0800
  • a8f12cb212 Fix only_i32 build. Stephen Chung 2022-11-23 18:46:40 +0800
  • 46514bbc85 Fix builds. Stephen Chung 2022-11-23 18:02:10 +0800
  • 02ef119603 Fix builds. Stephen Chung 2022-11-23 17:23:54 +0800
  • 3e7408511e Satisfy more clippy. Stephen Chung 2022-11-23 16:14:11 +0800
  • 9f5b68549a Deserialize large numbers. Stephen Chung 2022-11-23 16:13:57 +0800
  • 31292e683d Satisfy Clippy. Stephen Chung 2022-11-23 13:24:14 +0800
  • 2c73d403f7 EvalContext::scope_mut returns &mut Scope. Stephen Chung 2022-11-23 13:22:47 +0800
  • 4e27039521 Use bitflags. Stephen Chung 2022-11-23 11:36:30 +0800
  • d911327242 Use SmartString for buffers and literal_syntax can panic. Stephen Chung 2022-11-22 23:30:43 +0800