Commit graph

165 commits

Author SHA1 Message Date
Erin f2d3561508 Error comments + renaming 2022-07-02 00:27:38 +02:00
Erin 63af15cc94 EOF -> EOI 2022-07-02 00:22:40 +02:00
Erin 24c5ada994 Bumped AbleScript version
+ chore: update
+ clap minor update
+ change repo URLs
2022-07-02 00:19:44 +02:00
Erin 83b25b2b89 Implemented host interface 2022-07-02 00:17:29 +02:00
Erin e883010580 Well, Able and Eval functios can now change loops flow! 2022-07-01 23:12:59 +02:00
Erin 472b41cf16 Implemented finally 2022-07-01 22:56:22 +02:00
Erin 49e36b0a21 Value Refactoring 2022-06-17 20:58:37 +02:00
Erin 7140082ff6 Parser cleanup 2022-06-06 23:30:08 +02:00
Erin 84f54f12d6 Changed dim syntax 2022-06-03 00:10:19 +02:00
Erin 2c7596c871 ADDED VERY IMPORTANT CHANGE 2022-06-02 23:56:32 +02:00
Erin c0a2857122 Changed hopback to and again (credits: Evrey#6086) 2022-05-17 19:03:02 +02:00
Alex Bethel 507f700c44 Merge branch 'v0.4.0-fixes' 2022-05-09 17:58:36 -06:00
Alex Bethel ea802fbdf9 Fix AbleScript lib doc comment 2022-05-09 17:56:28 -06:00
Erin 7ec0b0b39d Replaced break with enough (credits: Evrey#6086) 2022-05-06 23:52:43 +02:00
Erin 3d745e6082 Bumped version to 0.4.0 2022-05-06 21:22:57 +02:00
Erin e4114ed2e8 changed undefined -> cart coercion 2022-05-06 21:12:55 +02:00
Erin ed1b3bfb43 Implemented all coercions for undefined 2022-05-06 21:08:16 +02:00
Erin d97d940d23 Evaluating nonextant variable results into Undefined 2022-05-06 20:20:52 +02:00
Erin bda92cc2f7 Added Undefined type 2022-05-06 20:19:35 +02:00
Erin aa29a1fc86 {} -> () 2022-05-06 17:30:41 +02:00
Erin 86dfc6d1f7 Removed arity checking and arity error 2022-05-06 17:28:25 +02:00
Erin 28a5415207 Renamed few errors 2022-05-06 17:25:50 +02:00
Erin 766eb799c9 Changed error variant name to go by conventions 2022-05-05 00:39:13 +02:00
Erin edb03dec94 get_bit returns error kind which makes the error spanned 2022-05-05 00:36:13 +02:00
Erin 7b5a9aed89 Fixed zero division and zero assertion errors when [] / 0 2022-05-04 23:15:12 +02:00
Erin 947c2552b1 fmt + clippy 2022-05-03 23:19:10 +02:00
Erin 6ad0ab5e29 Added non-newline print. 2022-05-03 23:13:17 +02:00
Erin 1a61c66e10 T-Dark letter cases implemented 2022-05-02 23:40:42 +02:00
Erin ab76516624 extracted t-dark substitution to separate function 2022-05-02 23:12:32 +02:00
Erin b76e890fb7 Modified Str -> Int coercion 2022-04-26 00:18:11 +02:00
Erin 85226fbfbb Implemented key extraction 2022-04-25 14:56:35 +02:00
Erin 19744aa63a Added escapes test 2022-04-24 23:47:51 +02:00
Erin c6f4aaef24 Added some comments 2022-04-24 23:33:11 +02:00
Erin 90f8137b0d Implemented string unicode escapes 2022-04-24 23:29:15 +02:00
Erin 842c121901 sus 2022-04-24 22:01:31 +02:00
Erin db3b56d798 Double Melo causes variable deletion 2022-04-22 21:14:53 +02:00
Erin 5ccc181f47 Rc is got by reference by default 2022-04-22 21:09:03 +02:00
Erin 95e790d8e8 Reimplemented Melo
- Variable made into enum of `ValueRef or Melo`
- Melo-ing variable causes dropping of the Rc, decreasing reference count
2022-04-22 21:06:34 +02:00
Erin 3916b20b59 clearer comment 2022-04-18 22:09:56 +02:00
Erin 5aada3c09e Made Parser private and made parse function
Parser had only consturctor and parse functions public.

Likely, there would be just a creation of parser followed by .parse(),
and now this action is performed in `parse` function.
2022-04-18 22:09:41 +02:00
Erin 98b72b14e2 Renamed init function in parser 2022-04-18 22:01:35 +02:00
Erin 60fb95cb13 Added crate-level docs for ablescript 2022-04-18 21:59:57 +02:00
Erin ee6105dd91 chore: fmt 2022-04-18 21:43:32 +02:00
Erin f2340dd493 fixed comments and naming 2022-04-18 21:43:19 +02:00
Erin ea13c79fc4 replaced if with unless 2022-04-18 21:42:26 +02:00
Erin 6dd32793bb Chars are no longer special case of identifiers 2022-04-18 21:04:19 +02:00
Erin 0eb2698242 Expr::Literal contains Literal type which contains only possible types instead of any Value 2022-04-18 20:56:11 +02:00
Erin eac86b5e0b Changed variable declaration / assignment and equals syntax:
- `dim <ident> [value];` is now used for declaration
- `<value> =: <assignable>` is used for assignments
- As token `=` doesn't cause any ambiguity now, it can be used for equals operation
2022-04-18 20:34:08 +02:00
Erin c1bc0e8a96 No underscore! 2022-04-16 22:06:37 +02:00
Erin 35caa085f8 fmt 2022-04-12 22:15:53 +02:00