Commit Graph

41 Commits

Author SHA1 Message Date
MCorange99
c40934c052
Merge pull request #3 from mc-lang/functions
Functions
2023-04-13 00:54:38 +03:00
MCorange
53d9edacad add support for functions and new words in vscode language highlighting 2023-04-13 00:49:49 +03:00
MCorange
7e46c07cca Finalising functions
typechecking still buggy, but close enough cause i cant handle any more
typechecker dev

added:
 - Functions
 - Constants
 - Better file positions for error reporting
 - Better error reporting, with examples being drawn in term

-MC
2023-04-13 00:34:08 +03:00
MCorange
63636e1f83 not working very well with std lib but working standalone ig 2023-04-11 16:24:52 +03:00
MCorange
9c84033d3f functions 2023-04-04 17:24:58 +03:00
MCorange
0a61a599c1 added support for macros inside macros 2023-04-01 17:49:41 +03:00
MCorange
f5d8b3ebca implemented local memory 2023-04-01 16:54:02 +03:00
MCorange
09bccc8079 added relative imports 2023-04-01 13:20:35 +03:00
MCorange99
747c4e59d4
Merge pull request #1 from mc-lang/refractor
Refractor
2023-03-26 19:36:52 +03:00
MCorange
93e308c0b0 refractor code, seperate instructions from keywords 2023-03-22 14:58:11 +02:00
MCorange
42492ce521 Merge branch 'main' of github.com:mc-lang/mclang2 into refractor 2023-03-21 20:26:57 +02:00
MCorange99
ff62e99302
Update rust.yml
Signed-off-by: MCorange99 <79301995+MCorange99@users.noreply.github.com>
2023-03-21 20:26:11 +02:00
MCorange
15b7113e6a Merge branch 'main' of github.com:mc-lang/mclang2 into refractor 2023-03-21 20:14:21 +02:00
MCorange
0d66ab1009 Cleaned up the code 2023-03-21 20:12:24 +02:00
MCorange99
237d38d405
Create rust.yml 2023-03-21 18:30:05 +02:00
MCorange
5aa2393c8f fix 2023-03-20 19:26:11 +02:00
MCorange
3953cd7ad6 add != >= <= ops and change / to divmod and add int.mcl stdlib entry 2023-03-20 16:53:30 +02:00
MCorange
427f904d0b added chars 2023-03-20 16:33:08 +02:00
MCorange
d536bfcf31 started implementing stdlib 2023-03-20 16:13:34 +02:00
MCorange
2d5e94608c added including of files 2023-03-20 14:36:38 +02:00
MCorange
30214808e5 finaly implemented macros properly 2023-03-20 13:39:04 +02:00
MCorange
5cc80619c2 make macros for logger 2023-03-19 13:09:10 +02:00
MCorange
d68b12fdf8 asd 2023-03-19 12:06:43 +02:00
MCorange
e63e9ef891 implemented string literals 2023-03-18 22:46:11 +02:00
MCorange
fed3be5614 introduced notion of a token 2023-03-18 20:21:45 +02:00
MCorange
c34a09fc7a optimise examples/rule110.mcl to match C speed 2023-03-18 19:06:03 +02:00
MCorange
8421fbf379 implement /example/rule110.mcl and fix interpreting syscalls 2023-03-18 18:41:57 +02:00
MCorange
8a53271a91 added like a shit load of math and stack instructions 2023-03-14 23:37:43 +02:00
MCorange
2c82aebd60 some docs for devs, added a few examples, implemented syscalls 2023-03-14 21:50:14 +02:00
MCorange
8d72420b04 added @8 and !\8 memory ops 2023-03-14 19:36:30 +02:00
MCorange
782c3aadde add 'mem' and extent Token to have Token.jmp which is used in if, else, end, while blocks instead of Token.value 2023-03-14 19:01:06 +02:00
MCorange
5ec182ab58 added while loops 2023-03-14 00:43:16 +02:00
MCorange
f9b1184f18 fixed lt and gt 2023-03-13 23:33:06 +02:00
MCorange
b6bbb2d251 added < and > 2023-03-13 23:31:55 +02:00
MCorange
a88e4efff0 added 'dup' 2023-03-13 23:20:35 +02:00
MCorange
6ac45cfcb7 added ifs with else 2023-03-13 23:15:49 +02:00
MCorange
8f91098792 Added Else less if 2023-03-13 17:38:05 +02:00
MCorange
f2b45e343c Added Equals '=' 2023-03-13 16:23:40 +02:00
MCorange
e053d7bef3 the error reporting is so stupid lmfao 2023-03-13 02:07:43 +02:00
MCorange
0921100d4f finally working again 2023-03-13 02:00:26 +02:00
MCorange
cfcea89dac NOT WORKING initial 2023-03-12 22:51:21 +02:00