Erin
6430387119
Implemented coercions when subtracting able functios
2021-12-09 17:18:37 +01:00
Erin
c92cb7e818
Who cares about the content, we have 256 commits!
...
And I readded a thing
2021-12-09 00:38:36 +01:00
Erin
6d48dca547
sync
2021-12-09 00:35:43 +01:00
Erin
61ee6b3597
Git things beyond your comprehension mortals
2021-12-09 00:34:41 +01:00
Erin
3bfe600103
Implemented halfway of functio sub
2021-12-09 00:33:45 +01:00
Alex Bethel
0b703173f8
Function division
2021-12-08 16:33:06 -07:00
Erin
3c98caf2d6
Made Clippy happy (so he will not kill us in sleep)
2021-12-08 22:56:12 +01:00
Alex Bethel
3cdca1666a
Use b-string instead of array of b-chars
2021-12-08 14:39:04 -07:00
Erin
20c6b4c7cf
Implemented Abool -> Functio
2021-12-07 22:58:41 +01:00
Alex Bethel
3044ef91e3
Better BF function conversions
2021-12-07 14:27:45 -07:00
Alex Bethel
ffcd0000c2
I made a cursed thing 😂
2021-12-07 14:24:58 -07:00
Erin
f5e4be4d67
Implemented Functio to Aboolean
2021-12-07 21:57:37 +01:00
Erin
904d647031
huh???
2021-12-07 21:20:24 +01:00
Erin
6889c3f3b2
Fmt!
2021-12-07 21:20:16 +01:00
Erin
65bb29d401
Function negation
2021-12-07 21:18:45 +01:00
Alex Bethel
6cd2b8bd44
Avoid trailing comma in cart printout
2021-11-27 11:11:03 -06:00
Alex Bethel
711b8e1c03
Slightly better ExecEnv::assign
...
A little more idiomatic, avoid some borrow checker clumsiness, add
comments.
2021-11-27 11:02:41 -06: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
2f5b954b7c
Eval errors are now correctly spanned
2021-08-29 00:23:59 +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
Alex Bethel
4c3d44dfd8
Fix panics on invalid indexes
2021-08-16 15:06:40 -06: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