Commit Graph

333 Commits (a4e3b98c6a89839557fbbf85d83626c99bb5b126)

Author SHA1 Message Date
HTG-YT 7fbd8e0186
move `rickroll` content into a file 2021-06-14 09:42:23 +08:00
HTG-YT 4639270aa5
Create rickroll 2021-06-14 09:41:20 +08:00
HTG-YT 133b15b01e
`rustfmt`: add trailing comma 2021-06-14 09:40:42 +08:00
HTG-YT 25149d54da Merge branch 'AbleCorp:master' into master 2021-06-14 09:40:00 +08:00
ondra05 1725ea0943 Added build staus badge 2021-06-13 18:43:09 +02:00
ondra05 ada7d9efbb
Added CI config
Rust Template
2021-06-13 18:14:41 +02:00
ondra05 13cf3b76df
Update README.md 2021-06-13 18:12:21 +02:00
HTG-YT 3246bec404
handle `Token::Rickroll` in parser 2021-06-13 13:24:09 +08:00
HTG-YT f0b4fff857
Update interpret.rs 2021-06-13 13:22:30 +08:00
HTG-YT 99320312be
handle `StmtKind::Rickroll` 2021-06-13 13:22:01 +08:00
HTG-YT a1962b1f1e
add `StmtKind::Rickroll` 2021-06-13 13:11:51 +08:00
HTG-YT a93307fb0a
add `rickroll` lexeme in lexer 2021-06-13 13:11:02 +08:00
Alex Bethel 6f7a5722f8 Make arithmetic errors evaluate to 42 2021-06-12 10:48:44 -05:00
Alex Bethel a3ddb4d108 Integrate `const.rs` as `consts` 2021-06-12 10:45:25 -05:00
Alex Bethel 597b994c00 Reimplement BF function declaration semantics 2021-06-12 09:26:21 -05:00
ondra05 c9ccf336af Better comment 2021-06-11 19:44:53 +02:00
ondra05 38cef6fea3 Removed todo when unknown token 2021-06-11 18:34:34 +02:00
ondra05 39aad6eb78 Fixed invalid spanning of UnexpectedToken in `parse_expr` 2021-06-11 18:31:25 +02:00
ondra05 69fcc0b550 BF code is now Vec<u8> 2021-06-11 18:10:11 +02:00
ondra05 4d3adbf89f Basic BfFunctio support 2021-06-11 17:52:47 +02:00
Alex Bethel 7228dafe29 Re-enable assignment semantics 2021-06-11 10:05:48 -05:00
ondra05 b9c56b5d3a Added variable assignment to parser
- Fixed parse error, that `rlyeh` returned HopBack
2021-06-11 16:59:40 +02:00
ondra05 c06e0747b8
Merge pull request #29 from HTG-YT/interpreter-fixes
add `interessant`, `nevergonnagiveyouup` and `funny` constants
2021-06-11 09:33:48 +02:00
HTG-YT b44bef1101
add `nevergonnagiveyouup` constant 2021-06-11 15:26:30 +08:00
HTG-YT 7de2e8b260
add `interessant` and `funny` constants 2021-06-11 15:19:27 +08:00
Alex Bethel daa3eecf63 Fix interpreter variable persistence bug 2021-06-08 19:21:33 -05:00
Alex Bethel 5998033612 Better error handling in REPL
We have much better spanned expression support, so now we get to show
it off!
2021-06-07 20:08:38 -05:00
Alex Bethel d89ab5e49b Remove 0..0 placeholder from unexpected_eof() 2021-06-07 20:03:26 -05:00
Alex Bethel 0414d6a99b Fix all 0..0 span placeholders in interpret.rs 2021-06-07 19:57:44 -05:00
Alex Bethel a4c8f4f30e Fix unit tests 2021-06-07 17:35:49 -05:00
Alex Bethel c8810b50cb Remove giant comment block left in by mistake 2021-06-07 16:28:27 -05:00
Alex Bethel e1ce6e3a05 Repair interpreter after parser changes 2021-06-07 16:20:20 -05:00
ondra05 63cc11e965 Added T-Dark test 2021-06-07 23:06:13 +02:00
ondra05 937f19858d Added tests, Bugfix
- Originally, it spanned from operator (bug)
2021-06-07 22:58:28 +02:00
ondra05 8beb81cd1a Added missing mut 2021-06-07 22:24:43 +02:00
ondra05 3af792779f Unified span terminology
- Add more derivations, because it's required by another parts of project
2021-06-07 22:21:21 +02:00
ondra05 f966b08bf2 Changed position terminology 2021-06-07 21:28:24 +02:00
ondra05 918cfe0eff Removed unwraps, added Rlyeh 2021-06-07 11:07:50 +02:00
ondra05 535a62357f Implement function calls
- And printing
- Revised terminology in Lexer
- Control flow
2021-06-07 11:00:06 +02:00
ondra05 17a5a5e814 Added logical operators 2021-06-07 09:17:30 +02:00
ondra05 d00d147baa Binary operator boilerplate reduction 2021-06-07 09:17:18 +02:00
ondra05 2a77ffa516 Added basic parsing
- Expressions
- If, Functio
2021-06-07 00:09:45 +02:00
ondra05 29a8a8f5f0 Initial chthulic error impl in Lexer
- See discussions #17
2021-06-06 23:15:11 +02:00
ondra05 5ff156f7ea AST revamp
- Unified terminology of span in error.rs
2021-06-06 23:13:48 +02:00
ondra05 9b76e9bea6 Updated AST 2021-06-06 21:09:18 +02:00
ondra05 82883638ef Removed custom Lexer, reorganised `Token` definition
- As peeking will not be involved in parsing, it was removed
2021-06-06 20:28:13 +02:00
ondra05 019fa818e3 Deleted old parser 2021-06-06 20:05:18 +02:00
Alex Bethel 3b8487a0aa Correct spelling of "occurred" 2021-06-05 08:50:20 -05:00
Alex Bethel 6f646a76e6 Prettier error handling 2021-06-04 18:56:26 -05:00
Able db741b7fe0
Merge pull request #28 from AlexBethel/bf-functio 2021-06-02 20:02:53 -05:00