ondra05
4d6dd0e58b
Fixed all errors
2022-02-13 00:58:50 +01:00
ondra05
9e8456195c
fixed base 55
2022-02-13 00:55:51 +01:00
ondra05
3dd91b0c97
Value::Int is isize
2022-02-13 00:55:19 +01:00
ondra05
a46b9ea910
Changed Built-in functio -> integer coercion
2022-02-13 00:37:17 +01:00
ondra05
84f519a2e5
Implemented builtin functio division
2022-02-13 00:30:40 +01:00
ondra05
2ecb492356
implemented subtraction for built-in functios
2022-02-13 00:25:56 +01:00
ondra05
785bce3095
Implemented not for built-in functios
2022-02-13 00:07:23 +01:00
ondra05
6f489d5435
Implemented Display for built-ins
2022-02-12 22:52:14 +01:00
ondra05
ebd8a28a83
Implemented coercions for built-in functios
2022-02-12 22:10:30 +01:00
ondra05
013c324a8e
Implemented built-in functios
...
- Missing coercions and operations
2022-02-12 21:14:55 +01:00
ondra05
4386e31ea5
Functio -> Int more cursed
2022-01-22 21:02:10 +01:00
ondra05
f4f7b102eb
Cart -> Int more cursed
2022-01-22 20:52:09 +01:00
ondra05
ae15f6cfb3
Implemented [] as length operator
2022-01-22 20:48:21 +01:00
ondra05
622ce45435
Implemented Len in parser
2022-01-22 20:37:44 +01:00
Alex Bethel
d59d75c6a2
Add martens owo
2021-12-29 17:06:46 -06:00
Alex Bethel
235a5ae3a0
Merge branch 'feature/coercions' of ssh://git.ablecorp.us:20/AbleScript/able-script into feature/coercions
2021-12-14 16:16:44 -06:00
Alex Bethel
f549c08a8f
Implement function chain division
2021-12-14 16:16:28 -06:00
ondra05
220d85355a
Fixed T-Dark blocks in blocks
2021-12-14 23:16:19 +01:00
ondra05
fe1f20a925
Removed clone
2021-12-14 23:05:21 +01:00
ondra05
a7d0766eb7
Renamed stuff
2021-12-14 23:02:55 +01:00
Alex Bethel
7655090c06
Arity-based functio deinterlacing
2021-12-14 15:56:40 -06:00
ondra05
7aa2d67449
🚗 Implemented ordered functio chaining
2021-12-14 21:45:44 +01:00
ondra05
a722ea00d5
Removed a feature which disallowed comments in functios
2021-12-14 21:10:58 +01:00
ondra05
3358234914
Implemented subtraction for functio chains... maybe?
2021-12-09 17:51:03 +01:00
ondra05
3f1b6d2387
Implemented coercions when subtracting able functios
2021-12-09 17:18:37 +01:00
ondra05
647fffbfd2
Who cares about the content, we have 256 commits!
...
And I readded a thing
2021-12-09 00:38:36 +01:00
ondra05
784992e65e
sync
2021-12-09 00:35:43 +01:00
ondra05
9b242843a1
Git things beyond your comprehension mortals
2021-12-09 00:34:41 +01:00
ondra05
7525b434e6
Implemented halfway of functio sub
2021-12-09 00:33:45 +01:00
Alex Bethel
4851e0375a
Function division
2021-12-08 16:33:06 -07:00
ondra05
d8ecfed5d5
Made Clippy happy (so he will not kill us in sleep)
2021-12-08 22:56:12 +01:00
Alex Bethel
91204c2b5f
Use b-string instead of array of b-chars
2021-12-08 14:39:04 -07:00
ondra05
77a2395dd4
Implemented Abool -> Functio
2021-12-07 22:58:41 +01:00
Alex Bethel
0217f25aa8
Better BF function conversions
2021-12-07 14:27:45 -07:00
Alex Bethel
b23963137a
I made a cursed thing 😂
2021-12-07 14:24:58 -07:00
ondra05
bc3f16ba40
Implemented Functio to Aboolean
2021-12-07 21:57:37 +01:00
ondra05
9e41f8de07
huh???
2021-12-07 21:20:24 +01:00
ondra05
c85e6e9257
Fmt!
2021-12-07 21:20:16 +01:00
ondra05
2d1d0eef5e
Function negation
2021-12-07 21:18:45 +01:00
Alex Bethel
2faf90430e
Merge branch 'fix/unused-code'
2021-11-27 17:20:54 -06:00
Alex Bethel
1f7073b8e6
Fix unused code warnings
2021-11-27 11:15:29 -06:00
Alex Bethel
145a7efbcf
Avoid trailing comma in cart printout
2021-11-27 11:11:03 -06:00
Alex Bethel
b59b165c1c
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
1fd6f65400
Assign read syntax
2021-11-05 17:09:53 -06:00
Alex Bethel
7e339f5535
Coerce indexing assignments into non-carts
2021-11-05 16:18:07 -06:00
ondra05
9067a05426
Renamed `semi_terminated` to `semicolon_terminated`
2021-10-23 23:20:45 +02:00
Alex Bethel
fe6f7599fb
Get cart assignments working
2021-10-23 15:08:10 -06:00
Alex Bethel
978aee3597
Almost get cart assignments working
2021-10-23 14:17:17 -06:00
ondra05
aedc2f12b1
Read in AST takes Assignable instead of Ident
2021-10-23 21:53:21 +02:00
Alex Bethel
2b322c00cc
Merge branch 'feature/line_continuations'
2021-10-23 12:46:05 -06:00
ondra05
ec49940b92
Moved Assignable creation functions
2021-10-21 20:51:24 +02:00
ondra05
38b647ff07
Removed `in_the_past_this_used_to_crash_but_not_anymore` test
2021-10-19 23:35:46 +02:00
T-Dark
cf6a24b15a
Fixed integer overflows. Why did I even write in the first place?
2021-10-19 17:29:53 +01:00
ondra05
83e3ea9283
Change Cart AssignableKind to Index.
2021-10-13 13:20:23 +02:00
Alex Bethel
88e65ff2a4
Sort of fix cart assignments
2021-10-12 14:33:23 -06:00
ondra05
9cfa5388ec
improvement
2021-10-12 22:22:33 +02:00
ondra05
f0f0becec9
Added Assignable support in parser / AST
2021-10-12 22:14:20 +02:00
Alex Bethel
5c9c759be2
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
ondra05
8986d225a4
Generalised some lexer functions
2021-10-04 23:03:23 +02:00
ondra05
d77a7a45fc
Renamed `Iden` to `Ident`
2021-10-04 23:00:18 +02:00
Alex Bethel
fa16442560
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
ondra05
c6fac09660
Variable name shortened
2021-09-02 18:36:25 +02:00
ondra05
4c5c44d177
Fixed division
...
x/0 is now x/42 instead of 42 which makes it more confusing
2021-09-02 18:35:33 +02:00
ondra05
71e56e9ad4
Clippy
2021-09-01 17:46:17 +02:00
ondra05
35440661e2
All operations except functio ones are implemented
...
- Aboolean logic
- Cart division/multiplication
2021-08-31 00:41:37 +02:00
ondra05
567fe8c85e
Implemented negation for most types
2021-08-30 23:19:25 +02:00
Alex Bethel
3342419242
Add parsing negative numbers
2021-08-30 15:03:29 -06:00
ondra05
bbabc8e195
Not is now lexing and parsing correctly
2021-08-30 22:55:31 +02:00
ondra05
6570292323
Removed And and Or ops because they aren't cursed enough
2021-08-30 22:18:09 +02:00
ondra05
19743f3c0b
Most of operations are implemented
2021-08-30 22:14:13 +02:00
ondra05
bc0c4f1911
fmt + docs
2021-08-29 00:34:08 +02:00
ondra05
0f283c1da8
Used body length for AbleFunctio to i32 instead of AST length
2021-08-29 00:28:45 +02:00
ondra05
7ca05ccda6
Revert "Eval errors are now correctly spanned"
...
This reverts commit 75792224f6
.
2021-08-29 00:26:40 +02:00
ondra05
75792224f6
Eval errors are now correctly spanned
2021-08-29 00:23:59 +02:00
ondra05
d509a986e6
Eval's integer representation is now its length
...
- consistency with other types
2021-08-29 00:07:26 +02:00
ondra05
b315a8414a
Added placeholders for And + Or
...
and used placeholders for -, * and / in interpret
2021-08-28 23:59:04 +02:00
ondra05
5daa009361
Fixed add overflows
2021-08-28 23:55:36 +02:00
ondra05
4c29018809
Display carts sorted
2021-08-28 23:52:58 +02:00
ondra05
10327463ac
Implement custom `PartialEq` for `Value`
2021-08-28 23:43:59 +02:00
ondra05
1a5b29e833
Most coercions implemented
2021-08-28 23:27:35 +02:00
ondra05
6000de6100
Require space after `owo` for making comments.
2021-08-23 18:58:28 +02:00
Alex Bethel
15cacdbaef
Fix panics on invalid indexes
2021-08-16 15:06:40 -06:00
ondra05
dda3213e3b
Relicensed to MIT
2021-08-11 20:32:12 +02:00
ondra05
528b916a69
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