Commit Graph

  • c62162b3c5 Use {} style for auto_restore. Stephen Chung 2023-03-17 06:15:59 +08:00
  • 07d5886100
    Merge pull request #708 from schungx/master Stephen Chung 2023-03-16 19:20:15 +08:00
  • a3324ceb3d Reduce lifted out variants. Stephen Chung 2023-03-16 19:00:59 +08:00
  • c7d40945ee Attempt to prevent building lookup tables on dispatch. Stephen Chung 2023-03-16 18:03:54 +08:00
  • 9ce581f745 Make track_progress inline. Stephen Chung 2023-03-16 13:30:32 +08:00
  • 55f022174b Remove matching by ASCII because compiler should already optimize. Stephen Chung 2023-03-16 13:05:29 +08:00
  • 952c77d9bb Fix feature. Stephen Chung 2023-03-15 18:31:53 +08:00
  • 41636eac55 Fine tune table-driven tokenizing. Stephen Chung 2023-03-15 17:22:11 +08:00
  • 2aa7b99d1e Revise table-driven parsing. Stephen Chung 2023-03-15 08:54:34 +08:00
  • 72508a07f5 Update test output. Stephen Chung 2023-03-15 08:27:02 +08:00
  • f46cbdde49 Speed up parsing. Stephen Chung 2023-03-15 08:01:44 +08:00
  • 906ab3a295 Add short-circuits to op-assignments. Stephen Chung 2023-03-09 22:03:27 +08:00
  • bb404a415d Remove warnings. Stephen Chung 2023-03-08 22:48:36 +08:00
  • e8dfabf967 Add floating-point. Stephen Chung 2023-03-08 22:48:31 +08:00
  • 80917bfad2 Fix build. Stephen Chung 2023-03-08 22:03:03 +08:00
  • 8fe5bac3e9 Short-circuit primary data operations. Stephen Chung 2023-03-08 21:50:57 +08:00
  • 58fad030ee Do not default compares of different types. Stephen Chung 2023-03-08 21:47:57 +08:00
  • fa4096e91e Fine tune Engine size. Stephen Chung 2023-03-07 16:52:37 +08:00
  • 3e784d592d Check for more hash collisions. Stephen Chung 2023-03-02 21:59:38 +08:00
  • a2f8d057f8 Add testing-environ feature. Stephen Chung 2023-03-02 13:16:15 +08:00
  • 86ccb37029 Simplify code. Stephen Chung 2023-02-28 22:33:44 +08:00
  • 9a5221f60d Add Engine::RAW. Stephen Chung 2023-02-25 21:41:11 +08:00
  • 5f09b5d9d9 Fix builds. Stephen Chung 2023-02-25 20:58:40 +08:00
  • 51581cdef5 Make Engine faster to create. Stephen Chung 2023-02-25 19:57:19 +08:00
  • c2a8c342bb Modify hashing function. Stephen Chung 2023-02-24 14:24:10 +08:00
  • 5b200a6d3d Fix build. Stephen Chung 2023-02-21 18:20:25 +08:00
  • 14e205cabc Satisfy msrv by removing then_some. Stephen Chung 2023-02-21 18:16:03 +08:00
  • c58b52f2cb Fix builds. Stephen Chung 2023-02-21 18:03:21 +08:00
  • a8be9c4d64 Reduce size of AST. Stephen Chung 2023-02-21 17:52:11 +08:00
  • b371c524ae Use indirection for doc. Stephen Chung 2023-02-21 17:14:14 +08:00
  • 129a5c6e86 Use then/then_some to simplify. Stephen Chung 2023-02-21 16:36:57 +08:00
  • 00f2b07d38 All symbols to start a custom syntax. Stephen Chung 2023-02-20 13:28:17 +08:00
  • 426055d4d3 Update rustyline. Stephen Chung 2023-02-20 10:06:26 +08:00
  • 6d888cc0e4 Fix bug. Stephen Chung 2023-02-18 14:28:38 +08:00
  • 6b301b4e70 Set allow_loop_expressions to true by default. Stephen Chung 2023-02-16 20:35:15 +08:00
  • 513a1ab435 Allow access to scope by loaded module. Stephen Chung 2023-02-13 21:12:17 +08:00
  • 7fc72e8c28 Use ? in tests. Stephen Chung 2023-02-13 08:59:58 +08:00
  • 7da20dd090 Forbid floating-point switch cases after range case. Stephen Chung 2023-02-13 08:58:59 +08:00
  • 10089c5cb0 Support switch range cases for floating-point values. Stephen Chung 2023-02-12 23:20:14 +08:00
  • d0a47d7f66 Refactor to do more pre-calculation work. Stephen Chung 2023-02-12 21:50:32 +08:00
  • 9f18d6519d Use debug_assert!. Stephen Chung 2023-02-12 00:13:54 +08:00
  • 8685323b15 Use SmartString for comments. Stephen Chung 2023-02-11 23:55:07 +08:00
  • dbac4d5689 Use StraightHashMap. Stephen Chung 2023-02-11 23:51:36 +08:00
  • 51c61b1bdb
    Merge pull request #705 from schungx/master Stephen Chung 2023-02-11 15:24:12 +08:00
  • 557b368fdb Fix op-assignment hashes. Stephen Chung 2023-02-11 15:06:17 +08:00
  • 9cb5154979 Refactor FnCallHashes. Stephen Chung 2023-02-11 12:52:07 +08:00
  • e177a5648a Remove hashing hack. Stephen Chung 2023-02-11 11:56:20 +08:00
  • 75718a5a8b Satisfy clippy. Stephen Chung 2023-02-11 00:17:26 +08:00
  • c58fe87107 Fix error. Stephen Chung 2023-02-10 23:51:22 +08:00
  • 4fe80a2026 Use &Token for op. Stephen Chung 2023-02-10 23:42:13 +08:00
  • 8d1fa19331 Remove usage of all() Stephen Chung 2023-02-10 18:33:22 +08:00
  • 97e0578165 Merge branch 'main' of https://github.com/rhaiscript/rhai Stephen Chung 2023-02-10 18:32:30 +08:00
  • 47f18f0ba7
    Merge pull request #688 from Mathieu-Lala/fix/lint Stephen Chung 2023-02-10 18:32:14 +08:00
  • 3523941fee
    fix<doc>: rename _item for item Mathieu Lala 2023-02-10 11:04:14 +01:00
  • 89725a6dd4 Fix bug when parsing !in. Stephen Chung 2023-02-10 14:58:03 +08:00
  • 8e5b280d8a
    fix<doc>: rename _unit for unit Mathieu Lala 2023-02-09 19:03:02 +01:00
  • 2ffffb6fdc
    Merge pull request #702 from schungx/master Stephen Chung 2023-02-09 22:21:42 +08:00
  • 777f3e219a Add max/min. Stephen Chung 2023-02-09 22:09:16 +08:00
  • 9bdf3c290d
    pull main & udpate lint Mathieu Lala 2023-02-05 17:59:02 +01:00
  • 097fa1f4e3
    Merge branch 'main' of github.com:Mathieu-Lala/rhai into fix/lint Mathieu Lala 2023-02-05 17:18:45 +01:00
  • 9bd80f607f Merge branch 'main' of https://github.com/rhaiscript/rhai Stephen Chung 2023-02-05 21:42:17 +08:00
  • 234bf76d0c
    Merge pull request #691 from Mathieu-Lala/feat/more-ci Stephen Chung 2023-02-05 21:41:53 +08:00
  • da2d3adaef
    fix: exclude feature Mathieu Lala 2023-02-05 13:22:44 +01:00
  • 933ffbc3fc
    feat<ci>: for a manual job for Mathieu Lala 2023-02-05 13:16:55 +01:00
  • 9608e58ded Use remove for flags. Stephen Chung 2023-02-03 15:58:07 +08:00
  • 675a45fac7 Fix bug. Stephen Chung 2023-02-03 15:11:40 +08:00
  • ca02d46a49 Use iterators. Stephen Chung 2023-01-31 19:44:46 +08:00
  • faa48f78c3 Refine hashing. Stephen Chung 2023-01-31 16:37:50 +08:00
  • 6980096a09
    Merge pull request #699 from schungx/master Stephen Chung 2023-01-30 14:12:04 +08:00
  • 08f428def2 Fix diagnostic messages. Stephen Chung 2023-01-30 13:03:47 +08:00
  • 6400b33b1b Use bitflag options for chains parsing. Stephen Chung 2023-01-30 12:31:33 +08:00
  • 9f966f6473 Fix test output. Stephen Chung 2023-01-29 16:01:34 +08:00
  • 62696853b4 Fix bug with parsing improper module separator. Stephen Chung 2023-01-29 15:23:33 +08:00
  • 2c631daa07 Add test for auto global constants for global namespace. Stephen Chung 2023-01-28 12:40:42 +08:00
  • f4949a2beb Always search scope after scope is modified. Stephen Chung 2023-01-27 22:31:14 +08:00
  • 663125a66d
    Merge pull request #697 from schungx/master Stephen Chung 2023-01-25 08:03:03 +08:00
  • 733bb07d2d Fix bug in chain parsing. Stephen Chung 2023-01-25 07:37:44 +08:00
  • c7355395c9
    feat<ci>: add a feature powerset check Mathieu Lala 2023-01-14 13:58:51 +01:00
  • ea3efe654c Avoid unnecessarily creating Scope. Stephen Chung 2023-01-11 11:42:46 +08:00
  • 6d64a75bd2 Avoid creating new Scope. Stephen Chung 2023-01-11 09:34:54 +08:00
  • dd2a0a64aa Remove Token::NONE. Stephen Chung 2023-01-08 21:15:16 +08:00
  • 541951ec3f Remove macro_use in types. Stephen Chung 2023-01-06 15:43:53 +08:00
  • ae02668d08 Mark pure. Stephen Chung 2023-01-03 14:00:18 +08:00
  • 9f5783f1a4 Bump version. Stephen Chung 2022-12-31 12:17:36 +08:00
  • af2e331b0f
    fix: not #cfg Mathieu Lala 2022-12-30 20:45:26 +01:00
  • c5002801c8
    ci: add feature powerset & style: used #[cfg(all(..))] Mathieu Lala 2022-12-30 19:29:27 +01:00
  • 9af5b1c78e
    fix: default clippy lints Mathieu Lala 2022-12-30 18:07:39 +01:00
  • 4c2630b71f
    Merge pull request #687 from schungx/master Stephen Chung 2022-12-30 22:47:49 +08:00
  • a478d57e01 Fix builds. Stephen Chung 2022-12-30 22:21:22 +08:00
  • ee8e745429 Change fold to for. Stephen Chung 2022-12-29 17:51:27 +08:00
  • 1a00ca0905 Change try_for_each to for. Stephen Chung 2022-12-29 13:35:42 +08:00
  • 858a6ad588 Make parse call arguments uniform. Stephen Chung 2022-12-29 12:18:41 +08:00
  • 8805f02a8f
    Merge pull request #686 from schungx/master Stephen Chung 2022-12-27 23:10:35 +08:00
  • 00c434eb71 Use Option<Token> instead of Token::NONE. Stephen Chung 2022-12-27 22:51:38 +08:00
  • bb1136e8ad Refine what can be called in method style. Stephen Chung 2022-12-27 22:06:51 +08:00
  • 7c00b74916 Allow string interpolation to work with no packages. Stephen Chung 2022-12-27 10:09:40 +08:00
  • 07f522e6d7 Fix array bug. Stephen Chung 2022-12-26 22:05:29 +08:00
  • c5cb2d5e0f Simplify Array::pad. Stephen Chung 2022-12-26 17:32:46 +08:00
  • d47bfa431a Revise built-in macros. Stephen Chung 2022-12-26 11:46:11 +08:00
  • dac4846742
    Merge pull request #685 from schungx/master Stephen Chung 2022-12-26 09:04:55 +08:00