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
ondra05
9537879d8c
There, we are now, we do not need those.
2022-03-01 22:15:27 +01:00
ondra05
0dee4ad9ab
Introduced newtype for `Rc<RefCell<Value>>`
2022-03-01 22:13:49 +01:00
ondra05
acb9bed2aa
Satisfied most of THE ALLMIGHTY CLIPPY's requests.
2022-03-01 21:53:58 +01:00
ondra05
816cb9ac82
Bool, Abool and Nil values are no longer tokens
2022-03-01 18:57:03 +01:00
ondra05
8c369d5cfc
fixed strings
2022-02-24 21:53:43 +01:00
ondra05
260e9efa84
Rust 2021
...
- Consts map generated using iterators
2022-02-23 21:47:07 +01:00
able
67823468b1
Merge pull request 'You know what could be cursed? Using Rust's block comment syntax as String delimiters!' ( #5 ) from change/string-delimiters into master
...
Reviewed-on: https://git.ablecorp.us:443/AbleScript/able-script/pulls/5
2022-02-23 14:11:14 +00:00
ondra05
f703a2546d
Fixed tests and examples
2022-02-22 22:49:56 +01:00
ondra05
ae7d3c6680
Changed string delimiters
...
You know what could be cursed? Using Rust's block comment syntax as String delimiters!
2022-02-22 22:39:03 +01:00