Commit graph

57 commits

Author SHA1 Message Date
db78e69267
use magic type for do 2022-12-10 16:49:51 +01:00
c5c2fd2d1c
handle non-void fn without return 2022-12-10 16:36:41 +01:00
16ee21d6d0
stop fn on return 2022-12-10 16:28:12 +01:00
c1d7a8e749
respect the fn type while return 2022-12-10 16:21:26 +01:00
db59e6d084
add error messages 2022-12-10 16:13:22 +01:00
c0c8880c56
handle args count 2022-12-10 16:11:37 +01:00
5b915a88e8
fix do 2022-12-10 16:06:13 +01:00
ea27236f04
add sc 2022-12-10 15:50:34 +01:00
ceaafba460
handle no-main program 2022-12-10 15:39:18 +01:00
3e0bfe973e
put everything in a main function 2022-12-10 15:26:31 +01:00
80eb75e891
follow up 2022-12-10 15:20:18 +01:00
efb2a79edf
compile functions 2022-12-10 15:17:40 +01:00
1c1e816457
add function semantics 2022-12-10 14:57:21 +01:00
7e4d3a3790
hide debug parser 2022-12-10 14:57:14 +01:00
06ab5bb3c1
* update indent
* fix debug semantics
2022-12-10 14:07:38 +01:00
6fda9b0e7e
update features 2022-12-10 13:50:53 +01:00
f34245bbf0
add type to args of function 2022-12-10 13:49:05 +01:00
ee9eef4b43
fix comments 2022-12-10 01:59:11 +01:00
828a780f9c
WIP Function implementation
* Add basic support of function
* move debug function to test file
* add a test who need to pass to end the implementation
2022-12-10 01:55:15 +01:00
4981d928ef
typo 2022-12-09 22:33:08 +01:00
6cd78dabaf
add void type 2022-12-09 22:20:05 +01:00
b1f1dc5aa8
ignore .conflicts files 2022-12-09 22:14:41 +01:00
41664b64bd
add comments 2022-12-09 22:14:18 +01:00
f657f8d9d7
* add beq and bne
* use optional arg for indentation while formating instructions
2022-12-09 22:00:59 +01:00
7a96ca6bf4
add hard to do idea 2022-12-09 21:51:03 +01:00
be24175a97
move all error related stuff to errors.ml file 2022-12-09 21:47:22 +01:00
2d94d85562
indent 2022-12-09 17:04:33 +01:00
72a928a840
fix registers 2022-12-09 16:58:17 +01:00
ae446ac42f
test sub 2022-12-09 16:54:30 +01:00
2eb316492c
add comment warning about div 2022-12-09 16:40:34 +01:00
5ddc80ada2
add substraction and division 2022-12-09 16:39:44 +01:00
c98231152a
add multiplication support 2022-12-09 16:12:32 +01:00
cf14c64adc
add baselib support 2022-12-09 14:45:59 +01:00
d433aafc4f
wip (fn): add return 2022-12-09 14:14:33 +01:00
a923bdb6b9
fix fmt_instr 2022-12-09 14:13:19 +01:00
209d8382e2
update features 2022-12-09 13:45:03 +01:00
648d10bc99
update error messages 2022-12-09 13:39:53 +01:00
2d9cc811a2
fix typo 2022-12-09 13:38:05 +01:00
2ff390b480
added list of features 2022-12-09 13:36:46 +01:00
9a277eb1e3
fix pos 2022-12-08 21:31:04 +01:00
378b054812
update tests 2022-12-08 21:30:56 +01:00
6f4eb269de
add boolean support 2022-12-08 21:30:39 +01:00
ab6e8c466b
add comments support 2022-12-08 21:29:42 +01:00
6188140b44
update tests 2022-12-08 19:55:28 +01:00
ca02eb9a3d
add variable support 2022-12-08 19:55:22 +01:00
76bc20c434
Capitalize error messages 2022-12-08 19:54:57 +01:00
af7799ea2c
* add neg
* change fmt_instr
2022-12-08 19:54:17 +01:00
9480a8aba2
ignore asm files 2022-12-08 15:35:20 +01:00
9c18e1f86f
complete the mips integration 2022-12-08 14:26:55 +01:00
b4f384ea76
add int into value type in IR 2022-12-08 14:04:46 +01:00