Commit Graph

  • dd1b6af259 Fix bunch of bugs, endianess of numbers seems to befucked, i have no idea why main MCorange 2026-02-12 23:26:59 +02:00
  • 96f8aa3bbb Docs MCorange 2026-02-05 12:46:36 +02:00
  • 660b9245fb Add all type parsing tests MCorange 2026-02-05 11:40:49 +02:00
  • 4b61adea5d Fix bugs, add propper tests MCorange 2026-02-03 13:20:23 +02:00
  • 081ff9a27a Add external functions (both import and export), make includes work MCorange 2026-01-29 22:37:04 +02:00
  • 834b5b1213 no segfault! MCorange 2026-01-28 22:30:02 +02:00
  • 1f4645ed24 Upgrade to rust 2024 MCorange 2026-01-17 16:39:01 +02:00
  • 158b76fe39 :3 MCorange 2026-01-17 16:31:40 +02:00
  • 06d8c1b0f3 Add all of the code gen, want to show it off MCorange 2025-03-27 18:49:17 +02:00
  • f338f07e7d Start of typechecking and other processing of ast after parsing MCorange 2024-12-22 02:53:21 +02:00
  • cb297bf75e Fixed error when parsing a function with no arguments MCorange 2024-12-22 02:52:39 +02:00
  • d5f02cf1d5 Replaced all the *Box with a generic LocBox<T> MCorange 2024-12-22 02:17:43 +02:00
  • b8728b8f8d Changed main function back to using anyhow::Result<T> cause i dont get backtraces without it MCorange 2024-12-22 02:01:54 +02:00
  • d2b0e57ce6 Saved location in tokens post parsing, fixed parsing just skipping stuff MCorange 2024-12-22 02:01:04 +02:00
  • 323d3342a3 Add a default binary so cargo doesnt ask me everyt time what to run MCorange 2024-12-21 23:09:29 +02:00
  • 9d243e33b6 Setup parser testing with various tests MCorange 2024-12-21 23:09:10 +02:00
  • 77738f7e20 Remove unused import MCorange 2024-12-21 23:08:45 +02:00
  • bf7f44e776 Dehardcode main function, impemented basic cli MCorange 2024-12-21 23:08:29 +02:00
  • 857471c6a9 Add the location of the log lines in the compiler code when running a debug build MCorange 2024-12-21 23:07:51 +02:00
  • 6c01265f0b Fix array type parsing, where it crashes with "IOT instruction, stack overflow" MCorange 2024-12-21 23:07:12 +02:00
  • 8bb0e28d80 Fix error when parsing a block where if its empty it errors asking for semicolon MCorange 2024-12-21 23:06:02 +02:00
  • debcf6ad6c MCLang, now with testing! MCorange 2024-12-21 05:10:03 +02:00
  • 54b6df5862 Initial MCorange 2024-12-21 03:22:07 +02:00
  • 5b51430df1 IDK old MCorange99 2024-03-07 17:37:38 +02:00
  • 9625256554 Added cstrings MCorange 2023-04-23 17:51:05 +03:00
  • 2d374d5d9d fix test runner MCorange 2023-04-13 16:42:51 +03:00
  • b0bf09cfb2 updated name MCorange 2023-04-13 13:47:15 +03:00
  • 946bdef7ff return the editor folder MCorange 2023-04-13 13:43:53 +03:00
  • 5e2ffcdfda started working on other repos MCorange 2023-04-13 13:38:20 +03:00
  • 8f43e042f0 Update README.md MCorange99 2023-04-13 05:13:29 +03:00
  • c44c33c26c Merge pull request #4 from mc-lang/function_features MCorange99 2023-04-13 05:02:04 +03:00
  • 30ffb0b07a Removed warning and disabled dev mode #4 MCorange 2023-04-13 04:59:08 +03:00
  • 2d7f302d42 Added function features MCorange 2023-04-13 04:57:28 +03:00
  • c8547af24c implemented inline functions MCorange 2023-04-13 02:39:21 +03:00
  • b327756f4d Fixed vscode highlighting MCorange 2023-04-13 02:38:10 +03:00
  • c40934c052 Merge pull request #3 from mc-lang/functions MCorange99 2023-04-13 00:54:38 +03:00
  • 53d9edacad add support for functions and new words in vscode language highlighting #3 MCorange 2023-04-13 00:49:49 +03:00
  • 7e46c07cca Finalising functions MCorange 2023-04-13 00:34:08 +03:00
  • 63636e1f83 not working very well with std lib but working standalone ig MCorange 2023-04-11 16:24:52 +03:00
  • 9c84033d3f functions MCorange 2023-04-04 17:24:58 +03:00
  • 0a61a599c1 added support for macros inside macros MCorange 2023-04-01 17:49:41 +03:00
  • f5d8b3ebca implemented local memory MCorange 2023-04-01 16:54:02 +03:00
  • 09bccc8079 added relative imports MCorange 2023-04-01 13:20:35 +03:00
  • 747c4e59d4 Merge pull request #1 from mc-lang/refractor MCorange99 2023-03-26 19:36:52 +03:00
  • 93e308c0b0 refractor code, seperate instructions from keywords #1 MCorange 2023-03-22 14:58:11 +02:00
  • 42492ce521 Merge branch 'main' of github.com:mc-lang/mclang2 into refractor MCorange 2023-03-21 20:26:57 +02:00
  • ff62e99302 Update rust.yml MCorange99 2023-03-21 20:26:11 +02:00
  • 15b7113e6a Merge branch 'main' of github.com:mc-lang/mclang2 into refractor MCorange 2023-03-21 20:14:21 +02:00
  • 0d66ab1009 Cleaned up the code MCorange 2023-03-21 20:12:24 +02:00
  • 237d38d405 Create rust.yml MCorange99 2023-03-21 18:30:05 +02:00
  • 5aa2393c8f fix MCorange 2023-03-20 19:26:11 +02:00
  • 3953cd7ad6 add != >= <= ops and change / to divmod and add int.mcl stdlib entry MCorange 2023-03-20 16:53:30 +02:00
  • 427f904d0b added chars MCorange 2023-03-20 16:33:08 +02:00
  • d536bfcf31 started implementing stdlib MCorange 2023-03-20 16:13:34 +02:00
  • 2d5e94608c added including of files MCorange 2023-03-20 14:36:38 +02:00
  • 30214808e5 finaly implemented macros properly MCorange 2023-03-20 13:39:04 +02:00
  • 5cc80619c2 make macros for logger MCorange 2023-03-19 13:09:10 +02:00
  • d68b12fdf8 asd MCorange 2023-03-19 12:06:43 +02:00
  • e63e9ef891 implemented string literals MCorange 2023-03-18 22:46:11 +02:00
  • fed3be5614 introduced notion of a token MCorange 2023-03-18 20:21:45 +02:00
  • c34a09fc7a optimise examples/rule110.mcl to match C speed MCorange 2023-03-18 19:06:03 +02:00
  • 8421fbf379 implement /example/rule110.mcl and fix interpreting syscalls MCorange 2023-03-18 18:41:57 +02:00
  • 8a53271a91 added like a shit load of math and stack instructions MCorange 2023-03-14 23:37:43 +02:00
  • 2c82aebd60 some docs for devs, added a few examples, implemented syscalls MCorange 2023-03-14 21:50:14 +02:00
  • 8d72420b04 added @8 and !\8 memory ops MCorange 2023-03-14 19:36:30 +02:00
  • 782c3aadde add 'mem' and extent Token to have Token.jmp which is used in if, else, end, while blocks instead of Token.value MCorange 2023-03-14 19:01:06 +02:00
  • 5ec182ab58 added while loops MCorange 2023-03-14 00:43:16 +02:00
  • f9b1184f18 fixed lt and gt MCorange 2023-03-13 23:33:06 +02:00
  • b6bbb2d251 added < and > MCorange 2023-03-13 23:31:55 +02:00
  • a88e4efff0 added 'dup' MCorange 2023-03-13 23:20:35 +02:00
  • 6ac45cfcb7 added ifs with else MCorange 2023-03-13 23:15:49 +02:00
  • 8f91098792 Added Else less if MCorange 2023-03-13 17:38:05 +02:00
  • f2b45e343c Added Equals '=' MCorange 2023-03-13 16:23:40 +02:00
  • e053d7bef3 the error reporting is so stupid lmfao MCorange 2023-03-13 02:07:43 +02:00
  • 0921100d4f finally working again MCorange 2023-03-13 02:00:26 +02:00
  • cfcea89dac NOT WORKING initial MCorange 2023-03-12 22:51:21 +02:00