Commit Graph

  • f1abd11571 Add docs and test on creating module from AST and file. Stephen Chung 2020-05-06 23:00:26 +08:00
  • 1934811838 Merge branch 'master' into namespace Stephen Chung 2020-05-06 22:58:15 +08:00
  • 898bb229e8 Merge branch 'master' into plugins Stephen Chung 2020-05-06 22:57:16 +08:00
  • e966f5d49e Fix bug with let statement without expression. Stephen Chung 2020-05-06 22:54:34 +08:00
  • 59eaad1fdf Create module from file. Stephen Chung 2020-05-06 22:26:52 +08:00
  • fa4d391e4b Merge branch 'master' into plugins Stephen Chung 2020-05-06 20:00:02 +08:00
  • 0cb0393c24 Bump version. Stephen Chung 2020-05-06 19:59:45 +08:00
  • d75a8bc6cd Make sure all features compile correctly. Stephen Chung 2020-05-06 19:45:17 +08:00
  • 88fec57394 Make module_resolver optional and remove NullModuleResolver. Stephen Chung 2020-05-06 16:09:44 +08:00
  • c9571d375a Add position to script error. Stephen Chung 2020-05-06 00:09:04 +08:00
  • 82e1af7acd Implement module resolvers. Stephen Chung 2020-05-05 23:57:25 +08:00
  • 036c054ba8 Fix indexer example. Stephen Chung 2020-05-05 20:55:06 +08:00
  • 87e0e783bc Display timestamp. Stephen Chung 2020-05-05 20:54:56 +08:00
  • a1bcc5cd7d Merge branch 'master' into namespace Stephen Chung 2020-05-05 20:42:16 +08:00
  • f081040767 Add support for custom type indexers. Stephen Chung 2020-05-05 20:38:48 +08:00
  • ff86ae1bd8 Update README with module functions API. Stephen Chung 2020-05-05 18:26:08 +08:00
  • aae9e43109 Implement module-qualified functions. Stephen Chung 2020-05-05 17:51:40 +08:00
  • 38e717a838 Build Module type plus engine hooks. Stephen Chung 2020-05-05 15:00:10 +08:00
  • c03b162b7e Refactor code base and split into more module files. Stephen Chung 2020-05-05 12:24:13 +08:00
  • 143861747d Rename sub-scope/SubScope to module. Stephen Chung 2020-05-05 10:39:12 +08:00
  • 64036f69ca Refine modules. Stephen Chung 2020-05-04 23:07:42 +08:00
  • 2bdd174f16 Add import statement. Stephen Chung 2020-05-04 19:36:58 +08:00
  • b94fa31e21 Merge branch 'master' into namespace Stephen Chung 2020-05-04 18:06:39 +08:00
  • 798e1df298 Do not error when a property is read-only. Stephen Chung 2020-05-04 18:06:09 +08:00
  • ead9716f6d Add namespacing syntax. Stephen Chung 2020-05-04 17:43:54 +08:00
  • 4bf07182dc Merge branch 'namespace' of https://github.com/schungx/rhai into namespace Stephen Chung 2020-05-04 10:42:57 +08:00
  • 7da9d265d3 Avoid copying parameters for function calls. Stephen Chung 2020-05-04 10:41:58 +08:00
  • 329942b67f
    Merge pull request #8 from jhwgh1968/namespace Stephen Chung 2020-05-04 10:41:22 +08:00
  • 7011e4068f Start on namespaces jhwgh1968 2020-05-03 12:19:01 -05:00
  • 3d05cc96cd Remove downcast_XXX from Variant. Stephen Chung 2020-05-03 22:17:28 +08:00
  • 68732a6e47 Use stepped range. Stephen Chung 2020-05-03 22:12:10 +08:00
  • d83b829810 Avoid copying arguments for function calls. Stephen Chung 2020-05-03 16:54:24 +08:00
  • fc66a7ecef Pretty up scripts with print. Stephen Chung 2020-05-02 16:23:36 +08:00
  • 3f9c4c32da Merge branch 'master' into plugins Stephen Chung 2020-05-02 11:57:45 +08:00
  • fc99b981a1 Fix panic when string character index is OOB. Stephen Chung 2020-05-01 23:39:55 +08:00
  • de4120b3bc Undelete benchmark.yml Stephen Chung 2020-05-01 17:57:59 +08:00
  • 4d98468aa6 Merge branch 'master' of https://github.com/jonathandturner/rhai Stephen Chung 2020-05-01 17:52:34 +08:00
  • f3e02fcd03
    Merge pull request #148 from GopherJ/patch-1 Stephen Chung 2020-05-01 17:50:19 +08:00
  • c7c7fe3dfc Reduce size of Expr and Stmt by Boxing strings. Stephen Chung 2020-05-01 17:32:39 +08:00
  • fb2e48cca2
    fix naming Cheng JIANG 2020-05-01 11:27:27 +02:00
  • 5c5e1db61e Cleanup code. Stephen Chung 2020-05-01 10:17:19 +08:00
  • 4f91e7fbcf Avoid copying in Dynamic. Stephen Chung 2020-04-30 22:52:36 +08:00
  • 6dcbfc8e4b
    Delete benchmark.yml Stephen Chung 2020-04-29 23:19:29 +08:00
  • 60b52c142e Fix README example for on_print and on_debug. Stephen Chung 2020-04-29 23:03:18 +08:00
  • 10756cdaf2 Merge branch 'master' into plugins Stephen Chung 2020-04-29 16:33:47 +08:00
  • ec4b01d40d
    Merge pull request #144 from schungx/master Stephen Chung 2020-04-29 16:32:20 +08:00
  • 21c3edb31e Streamline. Stephen Chung 2020-04-29 16:11:54 +08:00
  • 304c658f89 Use scope offset for variable access. Stephen Chung 2020-04-28 23:05:03 +08:00
  • 9ad9dd52ab Reduce unnecessary Cow's in Expr. Stephen Chung 2020-04-28 19:39:36 +08:00
  • 6351c07bc6 Fix compiling for all features. Stephen Chung 2020-04-28 19:39:28 +08:00
  • ec036e4039 Merge branch 'master' into plugins Stephen Chung 2020-04-27 22:52:37 +08:00
  • 41366d08fe Fix tests and packages for all features. Stephen Chung 2020-04-27 22:52:20 +08:00
  • d3a97dc86b Remove EntryRef from Scope. Stephen Chung 2020-04-27 22:49:09 +08:00
  • d043300ae2 Reduce unnecessary Option's. Stephen Chung 2020-04-27 21:28:31 +08:00
  • c2bb1f48c2 Reduce size of scope entry. Stephen Chung 2020-04-27 21:14:34 +08:00
  • 43fdf3f962 FunctionsLib always exist. Stephen Chung 2020-04-27 20:43:55 +08:00
  • b3e4659790 Encapsulate index values into StaticVec type. Stephen Chung 2020-04-27 20:25:20 +08:00
  • 0d5a36edc8 Increase prime numbers limit to 100K. Stephen Chung 2020-04-27 12:42:39 +08:00
  • 5afeba6fd1 No need to return value for Scope::get. Stephen Chung 2020-04-27 11:24:58 +08:00
  • 07c5abcc02 Remove RefCell in Scope. Stephen Chung 2020-04-27 09:36:31 +08:00
  • ce121ed6af Add comments and minor refactor. Stephen Chung 2020-04-26 21:48:49 +08:00
  • f5c7d7cd0d Reduce memory footprint of Target. Stephen Chung 2020-04-26 19:37:32 +08:00
  • 619b627d54 Modify for mutliple levels of indexing. Stephen Chung 2020-04-26 18:37:41 +08:00
  • 33d3e34908 Deep linking for dot/index chains. Stephen Chung 2020-04-26 18:04:07 +08:00
  • 5da9bc0f98
    Merge pull request #6 from schungx/master Stephen Chung 2020-04-26 17:03:28 +08:00
  • 976f22d613
    Merge pull request #5 from jhwgh1968/rhai_plugin Stephen Chung 2020-04-26 12:20:25 +08:00
  • e59f6939f7 Added basic Plugin trait and test jhwgh1968 2020-04-25 18:50:10 -05:00
  • 9998cf8890 Avoid copying iterator sources. Stephen Chung 2020-04-24 22:54:56 +08:00
  • 3cb3dc8e4f Fix shift function. Stephen Chung 2020-04-24 20:05:34 +08:00
  • fb8459d4de Remove unnecessary usings. Stephen Chung 2020-04-24 20:05:28 +08:00
  • c0eaf8a921 Fix benchmarks. Stephen Chung 2020-04-24 16:20:03 +08:00
  • afc4f73ebf Fix default features. Stephen Chung 2020-04-24 12:59:51 +08:00
  • b6d839c8a9 Fix no_std build. Stephen Chung 2020-04-24 12:39:24 +08:00
  • a306979a9c Fix tests. Stephen Chung 2020-04-23 14:00:29 +08:00
  • 5aaaa7be3b Simplify parsing by expecting the tokens stream will never be exhausted. Stephen Chung 2020-04-23 13:24:24 +08:00
  • a4bf572d5a Filter out reg_test so it doesn't prevent compiling. Stephen Chung 2020-04-23 13:23:25 +08:00
  • 5b41985ccc Fix doc test in on_debug. Stephen Chung 2020-04-23 13:22:53 +08:00
  • e7cc403381 Warn against eval in method-call style. Stephen Chung 2020-04-23 13:22:28 +08:00
  • 05bad53011 Encapsulate function calls and handle map property access more efficiently. Stephen Chung 2020-04-23 10:21:02 +08:00
  • adc74c795e Fix benchmark. Stephen Chung 2020-04-22 20:08:42 +08:00
  • 97520f14a9 Fix examples and benchmarks. Stephen Chung 2020-04-22 19:28:08 +08:00
  • ef9d870a82 Remove builtin.rs Stephen Chung 2020-04-22 19:28:00 +08:00
  • e8c0adb90d Fix benchmark. Stephen Chung 2020-04-22 19:10:13 +08:00
  • fbfea60903 Disallow assignments in expressions. Stephen Chung 2020-04-22 17:37:06 +08:00
  • 7df36033c4 Warn against === and !==. Stephen Chung 2020-04-22 17:36:51 +08:00
  • 9a1c715aad Refine package API. Stephen Chung 2020-04-22 14:55:40 +08:00
  • c40c0a0bc3 Add From<Vec<T>> and From<HashMap<String, T>> for Dynamic. Stephen Chung 2020-04-22 14:07:34 +08:00
  • c69647d9fd Change Dynamic::from_xxx to From<xxx> impl. Stephen Chung 2020-04-22 12:12:13 +08:00
  • 69733688bf Make all public API's return Box<EvalAltResult> to reduce footprint. Stephen Chung 2020-04-21 23:25:12 +08:00
  • 0a75479637 Refine packages plumbing. Stephen Chung 2020-04-21 23:01:10 +08:00
  • e394824bf3 Fixes. Stephen Chung 2020-04-21 00:24:25 +08:00
  • 0306d15c04 Split core and standard libraries into packages. Stephen Chung 2020-04-21 00:11:25 +08:00
  • 976f3a7f6d Avoid an allocation in each function registration. Stephen Chung 2020-04-20 12:43:34 +08:00
  • a1e33af5a0 Reduce size of Position by limiting resolution to 16 bits. Stephen Chung 2020-04-20 11:08:54 +08:00
  • 642533aef6 Extract function registration into a macro to prepare for future packages support. Stephen Chung 2020-04-19 22:58:44 +08:00
  • a1ec35f11d
    Merge pull request #138 from schungx/master Stephen Chung 2020-04-19 21:42:42 +08:00
  • 9015499722 Add more benchmarks. Stephen Chung 2020-04-19 18:33:09 +08:00
  • b23fd6e20a Reshuffle code sections. Stephen Chung 2020-04-19 18:33:02 +08:00
  • dd09dbf79e Add section on operator overloading. Stephen Chung 2020-04-19 18:32:53 +08:00
  • d3d62c7dd9 Anticipate number of functions to be registered. Stephen Chung 2020-04-19 13:40:11 +08:00