Alex Bethel
31fe3f53be
Sort of fix cart assignments
2021-10-12 14:33:23 -06:00
Erin
cdf4c5a308
improvement
2021-10-12 22:22:33 +02:00
Erin
4c6dd311a7
Added Assignable support in parser / AST
2021-10-12 22:14:20 +02:00
Erin
e47e739e02
Generalised some lexer functions
2021-10-04 23:03:23 +02:00
Erin
71c5738a6e
Renamed Iden
to Ident
2021-10-04 23:00:18 +02:00
Alex Bethel
e8349bf0d9
Improve consistency of code & comments
...
Changed all `&str.to_string()` into `&str.to_owned()`, and made the
grammar of the `Value::into_*` comments uniform.
2021-09-04 10:54:53 -06:00
Erin
a288db985d
Variable name shortened
2021-09-02 18:36:25 +02:00
Erin
4d1e85a295
Fixed division
...
x/0 is now x/42 instead of 42 which makes it more confusing
2021-09-02 18:35:33 +02:00
Erin
113554428f
Clippy
2021-09-01 17:46:17 +02:00
Erin
82c09e5b1b
All operations except functio ones are implemented
...
- Aboolean logic
- Cart division/multiplication
2021-08-31 00:41:37 +02:00
Erin
14e9eb5c6b
Implemented negation for most types
2021-08-30 23:19:25 +02:00
Erin
82239be160
Not is now lexing and parsing correctly
2021-08-30 22:55:31 +02:00
Erin
92f2c62d59
Removed And and Or ops because they aren't cursed enough
2021-08-30 22:18:09 +02:00
Erin
49ba66de07
Most of operations are implemented
2021-08-30 22:14:13 +02:00
Erin
58f0645b54
fmt + docs
2021-08-29 00:34:08 +02:00
Erin
31296ec0b8
Used body length for AbleFunctio to i32 instead of AST length
2021-08-29 00:28:45 +02:00
Erin
7a275556c7
Revert "Eval errors are now correctly spanned"
...
This reverts commit 2f5b954b7c
.
2021-08-29 00:26:40 +02:00
Erin
975655a96e
Merge branch 'feature/coercions-and-ops' of https://github.com/ablecorp/able-script into feature/coercions-and-ops
2021-08-29 00:24:24 +02:00
Erin
2f5b954b7c
Eval errors are now correctly spanned
2021-08-29 00:23:59 +02:00
Erin
3ce85a11ee
Eval errors are now correctly spanned
2021-08-29 00:16:15 +02:00
Erin
a8c603164c
AbleFunctio's body length is now by it's string representation
2021-08-29 00:10:44 +02:00
Erin
e30eef32b5
Eval's integer representation is now its length
...
- consistency with other types
2021-08-29 00:07:26 +02:00
Erin
1c8722ba99
Added placeholders for And + Or
...
and used placeholders for -, * and / in interpret
2021-08-28 23:59:04 +02:00
Erin
c66616ee2c
Fixed add overflows
2021-08-28 23:55:36 +02:00
Erin
e8f08a90d5
Display carts sorted
2021-08-28 23:52:58 +02:00
Erin
4c74e3bef3
Implement custom PartialEq
for Value
2021-08-28 23:43:59 +02:00
Erin
8b57cbe5a5
Most coercions implemented
2021-08-28 23:27:35 +02:00
Erin
2c36b2a5f7
Require space after owo
for making comments.
2021-08-23 18:58:28 +02:00
Alex Bethel
4c3d44dfd8
Fix panics on invalid indexes
2021-08-16 15:06:40 -06:00
Able
92134d68d5
Merge pull request #39 from AbleCorp/0.2.0
2021-08-15 19:48:37 -05:00
Erin
3297605bf2
Changed license file to MIT from Github template
2021-08-15 00:59:44 +02:00
Able
b3b2d1a8ef
Merge pull request #38 from AbleCorp/enhancement/relicensing
2021-08-11 13:36:03 -05:00
Erin
c70e77f717
Relicensed to MIT
2021-08-11 20:32:12 +02:00
Erin
aa854a067b
Restructured project ( #37 )
...
* Separation to two crates
- `ablescript`: library, language
- `ablescript_cli` - cli: repl and executor for files
* Added lints (back) to library
- unsafe_code and unwrap_used are forbidden
2021-08-10 21:32:12 +02:00
Alex Bethel
a2d240f471
Format .able
test files
...
Unified mixed 2-space and 4-space indentation into uniform 3-space
indentation.
2021-08-09 14:41:02 -06:00
Alex Bethel
fd9054d3d3
Functio & cart comparisons and hashing
2021-08-07 16:33:28 -06:00
Erin
3686b3b608
Added carts example
2021-08-01 18:47:13 +02:00
Erin
83a4f67121
Implemented callable expressions in parser
2021-08-01 18:36:09 +02:00
Erin
3df3cbbf6d
Implemented callable expressions in AST and Interpret
2021-08-01 18:30:07 +02:00
Erin
0c000337d2
fmt
2021-08-01 18:28:59 +02:00
Erin
25a3c14145
Changed to correct naming conventions
2021-07-29 23:26:43 +02:00
Erin
b451503a27
Obeyed clippy
2021-07-29 23:22:38 +02:00
Erin
e3cfaaf32c
removed unused enum variant
2021-07-29 23:04:04 +02:00
Erin
241f2261d1
Added history (session based)
2021-07-29 22:48:36 +02:00
Erin
eb91aa96fa
Added carts tests
2021-07-29 22:39:28 +02:00
Alex Bethel
3cd1115f5d
Merge branch 'feature/carts' of github.com:AbleCorp/able-script into feature/carts
2021-07-29 13:30:11 -05:00
Alex Bethel
0bca9ff79c
Get carts sort of working
...
still a bunch of `todo`s and needs a lot of work, but I'm hungry and
going on lunch break :)
2021-07-29 13:29:23 -05:00
Erin
a6f86b7e26
Bumped version to 0.2.0
2021-07-29 19:18:06 +02:00
Erin
603a244b78
Nest the loop inside a match arm
2021-07-29 19:17:10 +02:00
Erin
0d497bccdd
Added cart parsing
2021-07-29 18:58:11 +02:00