Commit Graph

407 Commits (trunk)

Author SHA1 Message Date
ondra05 b1edffab98 Merge pull request 'T-Dark letter cases implemented' (#10) from feature/tdark-cases into master
Reviewed-on: https://git.ablecorp.us:443/AbleScript/able-script/pulls/10
2022-05-03 21:03:42 +00:00
ondra05 e10a6c8c9d T-Dark letter cases implemented 2022-05-02 23:40:42 +02:00
ondra05 77dc87901e extracted t-dark substitution to separate function 2022-05-02 23:12:32 +02:00
ondra05 b6f37b6ced Modified Str -> Int coercion 2022-04-26 00:18:11 +02:00
ondra05 4b7aa07d06 Implemented key extraction 2022-04-25 14:56:35 +02:00
able ebd61780f6 Merge pull request 'Added String character escaping by dozenal " delimited unicode values' (#9) from feature/string-unicode-escapes into master
Reviewed-on: https://git.ablecorp.us:443/AbleScript/able-script/pulls/9
2022-04-25 12:48:07 +00:00
ondra05 4ab63aea47 Added escapes test 2022-04-24 23:47:51 +02:00
ondra05 c7ea807a8e Added some comments 2022-04-24 23:33:11 +02:00
ondra05 b462fd9c8f Implemented string unicode escapes 2022-04-24 23:29:15 +02:00
ondra05 83e395ff7b sus 2022-04-24 22:01:31 +02:00
ondra05 45bb1ade84 Merge pull request 'Changed the way how Melo-ing variables works' (#8) from improvements/melo into master
Reviewed-on: https://git.ablecorp.us:443/AbleScript/able-script/pulls/8
2022-04-23 11:54:22 +00:00
ondra05 827a13f358 Double Melo causes variable deletion 2022-04-22 21:14:53 +02:00
ondra05 b035138998 Rc is got by reference by default 2022-04-22 21:09:03 +02:00
ondra05 b0e8acd438 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
ondra05 53e2b0677a clearer comment 2022-04-18 22:09:56 +02:00
ondra05 5c11cd39bb 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
ondra05 dbe4835732 Renamed init function in parser 2022-04-18 22:01:35 +02:00
ondra05 6d195747e2 Added crate-level docs for ablescript 2022-04-18 21:59:57 +02:00
ondra05 4c218e3ab8 chore: fmt 2022-04-18 21:43:32 +02:00
ondra05 141164b46a fixed comments and naming 2022-04-18 21:43:19 +02:00
ondra05 097a5571ae replaced if with unless 2022-04-18 21:42:26 +02:00
ondra05 df32550844 Chars are no longer special case of identifiers 2022-04-18 21:04:19 +02:00
ondra05 e24bc5af35 Expr::Literal contains Literal type which contains only possible types instead of any Value 2022-04-18 20:56:11 +02:00
ondra05 0ef7177a03 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
ondra05 a4e3b98c6a Release binaries are now stripped 2022-04-16 22:11:13 +02:00
ondra05 e1f7533b2d No underscore! 2022-04-16 22:06:37 +02:00
ondra05 8234a9d9fe fmt 2022-04-12 22:15:53 +02:00
ondra05 95ecbdf4ce version bump 2022-04-12 14:17:20 +02:00
ondra05 2cdce8f77e dependency update + fmt 2022-04-12 14:16:34 +02:00
ondra05 87555a6184 removed `!=` in favour of `ain't` 2022-04-08 17:44:35 +02:00
ondra05 4c20ef179e Removed ! for ain't 2022-04-08 17:39:14 +02:00
Alex Bethel 96f2db4dc6 `cargo fmt` 2022-04-02 12:42:40 -06:00
ondra05 f842733757 removed \ from idents 2022-04-02 20:39:48 +02:00
ondra05 ddb15ba540 changed line order 2022-04-02 14:13:49 +02:00
ondra05 3bb1039e1d This isn't AbleScript, we can just negate expressions :D 2022-04-02 13:44:29 +02:00
ondra05 34cef2c613 Small change 2022-04-02 01:42:13 +02:00
ondra05 48618cced8 Merge branch 'refactoring/ast-spans' 2022-04-02 01:37:33 +02:00
ondra05 bd05ceb086 Removed Booleans
We have Abooleans (where Always = true, Never = false), so why to duplicate stuff?

This PR was lying around unmerged for quite some time, merged without review.
2022-04-01 23:37:10 +00:00
ondra05 1dc9979738 Removed ident type, fixed tests 2022-04-02 01:34:25 +02:00
ondra05 75df416679 Generalised Spanned items 2022-04-02 01:22:46 +02:00
ondra05 6cfd26dcc2 Simplified base 55 2022-04-02 01:06:47 +02:00
ondra05 8f6d2483f3 fixed tests 2022-03-30 21:03:17 +02:00
ondra05 bdbf8d0a29 Improved type coercions 2022-03-30 20:56:59 +02:00
ondra05 c867ad8406 Removed booleans 2022-03-30 20:55:05 +02:00
ondra05 7cc456ee40 Used checked next in require 2022-03-20 02:20:55 +01:00
ondra05 8b5be3d90f Changed way of String lexing 2022-03-13 13:18:51 +01:00
ondra05 6ea380f3a0 Added support for idents starting with _ 2022-03-12 23:26:39 +01:00
ondra05 d47bd65387 fixed spelling of ain't 2022-03-02 11:36:08 +01:00
ondra05 c3a51e3221 \ is valid part of identifiers 2022-03-01 23:07:23 +01:00
ondra05 e7a4a99edc Renamed dir 2022-03-01 22:17:01 +01:00