Commit Graph

407 Commits (trunk)

Author SHA1 Message Date
ondra05 de93f4d773 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
ondra05 75792224f6 Eval errors are now correctly spanned 2021-08-29 00:23:59 +02:00
ondra05 9f29211c55 Eval errors are now correctly spanned 2021-08-29 00:16:15 +02:00
ondra05 aa859a7566 AbleFunctio's body length is now by it's string representation 2021-08-29 00:10:44 +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
Able fde5909506
Merge pull request #39 from AbleCorp/0.2.0 2021-08-15 19:48:37 -05:00
ondra05 938070eb9e
Changed license file to MIT from Github template 2021-08-15 00:59:44 +02:00
Able 5c24d72b4b
Merge pull request #38 from AbleCorp/enhancement/relicensing 2021-08-11 13:36:03 -05: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
Alex Bethel 1985765d78 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 042a0779dd Functio & cart comparisons and hashing 2021-08-07 16:33:28 -06:00
ondra05 c94e88c03c Added carts example 2021-08-01 18:47:13 +02:00
ondra05 021c16a671 Implemented callable expressions in parser 2021-08-01 18:36:09 +02:00
ondra05 f3c4ede084 Implemented callable expressions in AST and Interpret 2021-08-01 18:30:07 +02:00
ondra05 3d29ae19ae fmt 2021-08-01 18:28:59 +02:00
ondra05 e477a45e81 Changed to correct naming conventions 2021-07-29 23:26:43 +02:00
ondra05 ac64001933 Obeyed clippy 2021-07-29 23:22:38 +02:00
ondra05 e7675487e2 removed unused enum variant 2021-07-29 23:04:04 +02:00
ondra05 837d78ea1b Added history (session based) 2021-07-29 22:48:36 +02:00
ondra05 c66e449d71 Added carts tests 2021-07-29 22:39:28 +02:00
Alex Bethel db143e53e8 Merge branch 'feature/carts' of github.com:AbleCorp/able-script into feature/carts 2021-07-29 13:30:11 -05:00
Alex Bethel 18a4408513 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
ondra05 e6ec33f289 Bumped version to 0.2.0 2021-07-29 19:18:06 +02:00
ondra05 0a9bcfa7d2 Nest the loop inside a match arm 2021-07-29 19:17:10 +02:00
ondra05 eca34e3a62 Added cart parsing 2021-07-29 18:58:11 +02:00
ondra05 d66e1f2a12 Not fails on cart contruction parsing, does nothing. 2021-07-29 18:17:08 +02:00
ondra05 07f5b022d9 Extracted construction of carts to separate function 2021-07-27 12:14:11 +02:00
ondra05 14b329264d Implemented cart indexing parsing 2021-07-27 12:09:36 +02:00
ondra05 9d01fa192c Added arrow token 2021-07-27 11:52:43 +02:00
ondra05 55e461b5e5 Added cart support into AST 2021-07-27 11:51:05 +02:00
Alex Bethel 255c28db47 Fix broken `type_errors` unit test 2021-07-22 22:27:17 -05:00
Alex Bethel e5c67a6049 Remove latent debug `println` for BFF input 2021-07-22 22:11:55 -05:00
Alex Bethel d0cc5286c3 Merge branch 'master' of github.com:AbleCorp/able-script 2021-07-22 22:09:40 -05:00
Alex Bethel be24978381 Use coercion in BFF argument passing 2021-07-22 22:08:04 -05:00
Alex Bethel 35ad82db78 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 71a23ca4c2 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 2912cc8594 Make integer coercion infallible 2021-07-16 18:56:45 -05:00
ondra05 a10c7c9398
Reduced parser boilerplate 2021-07-15 21:39:01 +02:00
Alex Bethel c1236228a9 Fix function call type error message 2021-07-15 14:24:07 -05:00
Alex Bethel 2632be1073 Make consts accessible from AbleScript code 2021-07-13 14:22:06 -05:00
Alex Bethel 4aa4183052 Prettier error handling 2021-07-13 13:54:27 -05:00
Alex Bethel 61bf45754b Revert "Update README.md"
This reverts commit 535093f0bc.

It is, in fact, still better than Javascript.
2021-07-01 17:17:48 -05:00