Commit Graph

27 Commits (v0.2.0)

Author SHA1 Message Date
ondra05 3a6cc2b461 Merge branch 'feature/coercions' of https://git.ablecorp.us/AbleScript/able-script into feature/coercions 2021-12-14 23:02:57 +01:00
ondra05 a7d0766eb7 Renamed stuff 2021-12-14 23:02:55 +01:00
Alex Bethel 2ec6e52d10 Fix carts.able formatting 2021-12-14 15:57:04 -06:00
Alex Bethel 7655090c06 Arity-based functio deinterlacing 2021-12-14 15:56:40 -06:00
Able fde5909506
Merge pull request #39 from AbleCorp/0.2.0 2021-08-15 19:48:37 -05: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
ondra05 c94e88c03c Added carts example 2021-08-01 18:47:13 +02: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
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
Able 562645c8ef Slightly more curse 2021-05-24 01:18:36 -05:00
ondra05 603e834dd1 Parser implements examples
- Function call is now stmt (muhehe)
2021-05-02 15:43:25 +02:00
ondra05 de0539a509 Divided token types
- Item = Expr | Stmt
- Added REPL (AST dump)
- Removed operator parsing because it was horrible and I need to redo it
2021-05-01 13:44:58 +02:00
ondra05 74cb7639b1 Tidy up 2021-04-29 19:19:35 +02:00
ondra05 291c9cd556 Implemented function calls 2021-04-29 18:50:51 +02:00
ondra05 0d2bb8b095 Added Peekable Lexer
- Added wrapper for Lexer with `peek()` method
- Renamed `token` module to `lexer` as it more describe it's function
- Started work on operator flow
2021-04-28 22:52:19 +02:00
ondra05 dd1d4aa411 Added parsing of conditionals 2021-04-27 13:48:56 +02:00
ondra05 a5a6d986e3 Made parser to throw error when unexpected EOF 2021-04-27 11:57:11 +02:00
ondra05 f417301214 Redone original parser
= implemented original features
2021-04-27 11:49:07 +02:00
ondra05 67b504af4c Continue work on parser, improved lexer
- Added literal parsing (improved lexing)
- Revised error handling
2021-04-27 10:51:39 +02:00
ondra05 fbd16d2bcc Added function/variable parsing
- Added block support
- TODO: Tidy it up
2021-04-18 22:33:55 +02:00
ondra05 50758ee434 Initial parser work 2021-04-18 16:39:43 +02:00
able 693638f374 Adding a melo example 2021-04-12 22:19:44 -05:00
able 2c4154025f Tokens added or something 2021-04-11 17:22:06 -05:00
able 5cf69e933d Updating examples 2021-04-11 15:17:08 -05:00
able abd2d7e5f8 more fixes 2021-04-11 14:18:41 -05:00