Erin
06464dfea9
Removed in_the_past_this_used_to_crash_but_not_anymore
test
2021-10-19 23:35:46 +02:00
T-Dark
0c755c927f
Fixed integer overflows. Why did I even write in the first place?
2021-10-19 17:29:53 +01:00
Erin
3cff0da70a
Change Cart AssignableKind to Index.
2021-10-13 13:20:23 +02:00
Alex Bethel
990e2806f1
Sort of fix cart assignments
2021-10-12 14:33:23 -06:00
Erin
cce392aaaa
improvement
2021-10-12 22:22:33 +02:00
Erin
ea79e805f2
Added Assignable support in parser / AST
2021-10-12 22:14:20 +02:00
Alex Bethel
863d03575b
Add statement continuation in REPL in CLI
...
Typing ```
var foo = [
``` into the REPL now causes it to prompt you to complete the
statement rather than just printing an "unexpected EOF" error.
2021-10-09 22:31:14 -06:00
Erin
1a5d2edee1
Generalised some lexer functions
2021-10-04 23:03:23 +02:00
Erin
d229c3d3c3
Renamed Iden
to Ident
2021-10-04 23:00:18 +02:00
Alex Bethel
7673b64a71
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
1b9f8a6179
Variable name shortened
2021-09-02 18:36:25 +02:00
Erin
fb16cb2ebb
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
23f03e7f67
Clippy
2021-09-01 17:46:17 +02:00
Erin
a33a3ddd7f
All operations except functio ones are implemented
...
- Aboolean logic
- Cart division/multiplication
2021-08-31 00:41:37 +02:00
Erin
70288ae409
Implemented negation for most types
2021-08-30 23:19:25 +02:00
Alex Bethel
a3b6ae326e
Add parsing negative numbers
2021-08-30 15:03:29 -06:00
Erin
af2fe717fb
Not is now lexing and parsing correctly
2021-08-30 22:55:31 +02:00
Erin
bd7209c004
Removed And and Or ops because they aren't cursed enough
2021-08-30 22:18:09 +02:00
Erin
539989e2d0
Most of operations are implemented
2021-08-30 22:14:13 +02:00
Erin
e2c7a33a59
fmt + docs
2021-08-29 00:34:08 +02:00
Erin
e84c4b2a39
Used body length for AbleFunctio to i32 instead of AST length
2021-08-29 00:28:45 +02:00
Erin
d6e99acdc9
Revert "Eval errors are now correctly spanned"
...
This reverts commit 9b81ccf57c
.
2021-08-29 00:26:40 +02:00
Erin
90d0ed7a93
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
9b81ccf57c
Eval errors are now correctly spanned
2021-08-29 00:23:59 +02:00
Erin
0cf8576a77
Eval errors are now correctly spanned
2021-08-29 00:16:15 +02:00
Erin
c764cda7c7
AbleFunctio's body length is now by it's string representation
2021-08-29 00:10:44 +02:00
Erin
f08778ca3e
Eval's integer representation is now its length
...
- consistency with other types
2021-08-29 00:07:26 +02:00
Erin
24b6683b21
Added placeholders for And + Or
...
and used placeholders for -, * and / in interpret
2021-08-28 23:59:04 +02:00
Erin
e95e0744c6
Fixed add overflows
2021-08-28 23:55:36 +02:00
Erin
1b243d142c
Display carts sorted
2021-08-28 23:52:58 +02:00
Erin
2010b13168
Implement custom PartialEq
for Value
2021-08-28 23:43:59 +02:00
Erin
160ebd649d
Most coercions implemented
2021-08-28 23:27:35 +02:00
Erin
1d24082ee8
Require space after owo
for making comments.
2021-08-23 18:58:28 +02:00
Alex Bethel
5368dd5209
Fix panics on invalid indexes
2021-08-16 15:06:40 -06:00
Able
06358adafa
Merge pull request #39 from AbleCorp/0.2.0
2021-08-15 19:48:37 -05:00
Erin
507189c5f7
Changed license file to MIT from Github template
2021-08-15 00:59:44 +02:00
Able
b5bb66f504
Merge pull request #38 from AbleCorp/enhancement/relicensing
2021-08-11 13:36:03 -05:00
Erin
17f5388de8
Relicensed to MIT
2021-08-11 20:32:12 +02:00
Erin
60b63a7699
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
0bec0a5a17
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
22afba44b1
Functio & cart comparisons and hashing
2021-08-07 16:33:28 -06:00
Erin
6de8c17c19
Added carts example
2021-08-01 18:47:13 +02:00
Erin
1f891353df
Implemented callable expressions in parser
2021-08-01 18:36:09 +02:00
Erin
3262702465
Implemented callable expressions in AST and Interpret
2021-08-01 18:30:07 +02:00
Erin
f4beb85de2
fmt
2021-08-01 18:28:59 +02:00
Erin
82767864ab
Changed to correct naming conventions
2021-07-29 23:26:43 +02:00
Erin
fa63fda7f8
Obeyed clippy
2021-07-29 23:22:38 +02:00
Erin
35ddf85a92
removed unused enum variant
2021-07-29 23:04:04 +02:00
Erin
281fc9c635
Added history (session based)
2021-07-29 22:48:36 +02:00
Erin
d1146824f8
Added carts tests
2021-07-29 22:39:28 +02:00