Commit graph

203 commits

Author SHA1 Message Date
Alex Bethel 706d39e860 Merge branch 'feature/line_continuations' 2021-10-23 12:46:05 -06:00
Erin 0f198a2554 Merge pull request #43 from T-Dark0/T-Dark_fix_brainfuck_overflows
Fixed integer overflows. Why did I even write `checked_add` in the first place?
2021-10-19 23:37:47 +02:00
Erin 3e8b80af2a Removed in_the_past_this_used_to_crash_but_not_anymore test 2021-10-19 23:35:46 +02:00
T-Dark 6779d7c898 Fixed integer overflows. Why did I even write in the first place? 2021-10-19 17:29:53 +01:00
Alex Bethel 6eb97c6032 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
Alex Bethel 6f8a49b711 Add parsing negative numbers 2021-08-30 15:03:29 -06: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
Erin b53cc1e768 Not fails on cart contruction parsing, does nothing. 2021-07-29 18:17:08 +02:00
Erin bf2e73a5d1 Extracted construction of carts to separate function 2021-07-27 12:14:11 +02:00
Erin e7bd81e12a Implemented cart indexing parsing 2021-07-27 12:09:36 +02:00
Erin ab1515cdb0 Added arrow token 2021-07-27 11:52:43 +02:00
Erin e847a76c6d Added cart support into AST 2021-07-27 11:51:05 +02:00
Alex Bethel 282a9a6a07 Fix broken type_errors unit test 2021-07-22 22:27:17 -05:00
Alex Bethel 0b0a8942de Remove latent debug println for BFF input 2021-07-22 22:11:55 -05:00
Alex Bethel dcc0c0b00f Merge branch 'master' of github.com:AbleCorp/able-script 2021-07-22 22:09:40 -05:00
Alex Bethel 501d182fb4 Use coercion in BFF argument passing 2021-07-22 22:08:04 -05:00
Alex Bethel 50f9bfa4c6 Eliminate type errors
Hooray, we've just made a whole class of errors impossible! :D
2021-07-16 19:03:27 -05:00
Alex Bethel 821eeae322 Silently fail when calling a non-function
The most cursed possible way to deal with this error.
2021-07-16 19:02:51 -05:00
Alex Bethel d3242484fc Make integer coercion infallible 2021-07-16 18:56:45 -05:00
Erin 0c795741e8 Reduced parser boilerplate 2021-07-15 21:39:01 +02:00
Alex Bethel 141220fb38 Fix function call type error message 2021-07-15 14:24:07 -05:00
Alex Bethel 3d9f847862 Make consts accessible from AbleScript code 2021-07-13 14:22:06 -05:00
Alex Bethel a225105f09 Prettier error handling 2021-07-13 13:54:27 -05:00
Alex Bethel 8818536717 Revert "Update README.md"
This reverts commit e02edbbd16.

It is, in fact, still better than Javascript.
2021-07-01 17:17:48 -05:00
Alex Bethel bc7427014d Add more info to Cargo.toml 2021-06-30 16:45:44 -05:00
Alex Bethel 1e8314b1a1 Merge branch 'feature/read' 2021-06-19 17:34:19 -05:00
Alex Bethel c1cc54be75 Merge 'feature/forty-two' into master 2021-06-19 17:32:12 -05:00
Alex Bethel eee173060c Implement read semantics in interpreter
Also added a test file `iotest.able` to just read data and print
it (the `cat` of AbleScript I guess).
2021-06-18 16:05:50 -05:00