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 |
Alex Bethel
|
72b434a877
|
Add more info to Cargo.toml
|
2021-06-30 16:45:44 -05:00 |
Alex Bethel
|
2e84ecb6f8
|
Merge branch 'feature/read'
|
2021-06-19 17:34:19 -05:00 |
Alex Bethel
|
5f2987f33a
|
Merge 'feature/forty-two' into master
|
2021-06-19 17:32:12 -05:00 |
Alex Bethel
|
4d73b29e88
|
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 |
ondra05
|
793d41e614
|
Implemented read in Parser
|
2021-06-18 20:28:53 +02:00 |
Alex Bethel
|
47e8f542aa
|
Forbid use of `unwrap` w/ clippy
|
2021-06-16 10:36:52 -05:00 |
Alex Bethel
|
98fe899373
|
Clippy conformance
|
2021-06-16 10:35:06 -05:00 |
Alex Bethel
|
d75945d79c
|
Add `--debug` option for printing AST
|
2021-06-16 10:29:27 -05:00 |
Alex Bethel
|
70172bc01c
|
Better error messages, remove debug AST printing
|
2021-06-16 10:25:55 -05:00 |
Alex Bethel
|
8099cb86bd
|
Remove quotes around rickroll string
They're not necessary, because the `rickroll` file is already included
as a string.
|
2021-06-15 11:47:39 -05:00 |
Alex Bethel
|
119d99800d
|
Fix ignored unit tests in interpret.rs
|
2021-06-15 11:46:01 -05:00 |
Alex Bethel
|
e50f2a47e3
|
Fix unit tests
|
2021-06-15 11:29:52 -05:00 |
Alex Bethel
|
273e2ba8a6
|
`rustfmt`: whoops, let's put a semicolon there
maybe I should have actually looked at what rustfmt produced before I
just blindly accepted it and pushed it onto master.
|
2021-06-15 10:26:44 -05:00 |
Alex Bethel
|
049d12645b
|
`rustfmt`: break long line
|
2021-06-15 10:24:50 -05:00 |
Alex Bethel
|
b051972834
|
Use pass-by-reference for variables, pass-by-value for expressions
|
2021-06-15 09:51:00 -05:00 |
Alex Bethel
|
d5d7f1a037
|
Implement most of pass-by-reference
We need some parser changes to make it work fully: function arguments
are now identifiers rather than expressions.
|
2021-06-15 09:51:00 -05:00 |
Alex Bethel
|
0b99884c66
|
Lack of `else` statements is intentional
|
2021-06-15 09:51:00 -05:00 |
Alex Bethel
|
d861eaf230
|
Improve pass-by-reference test
|
2021-06-15 09:51:00 -05:00 |
Alex Bethel
|
2dfc0f1470
|
Add pass-by-reference test (doesn't work yet)
Also rename the "hello_world.able" test to "hello-world.able" for
consistency.
|
2021-06-15 09:51:00 -05:00 |
Alex Bethel
|
5e0e2b83f9
|
Implement `functio` declaration & calling
|
2021-06-15 09:51:00 -05:00 |
Able
|
ae96b4b235
|
Merge pull request #33 from HTG-YT/master
|
2021-06-15 04:39:07 -05:00 |
HTG-YT
|
53ee36fff4
|
comply with the move of `rickroll`
|
2021-06-14 20:53:27 +08:00 |
HTG-YT
|
fe932e0148
|
move `rickroll` to `src/` folder
|
2021-06-14 20:52:38 +08:00 |
HTG-YT
|
ee4023f30a
|
Update rickroll
|
2021-06-14 09:42:38 +08:00 |