idk why i made this lmao
This commit is contained in:
14
compiler/hell.l
Normal file
14
compiler/hell.l
Normal file
@@ -0,0 +1,14 @@
|
||||
%%
|
||||
"func" { printf("int"); }
|
||||
|
||||
local { printf("static"); }
|
||||
|
||||
"import" { printf("#include"); }
|
||||
|
||||
"str" { printf("char"); }
|
||||
|
||||
/* Library declarations */
|
||||
|
||||
"hell:std.ioutils" { printf("<stdio.h>"); }
|
||||
"hell:std.ioutils.writeln" { printf("printf"); }
|
||||
"hell:std.ioutils.readln" { printf("scanf"); }
|
||||
Reference in New Issue
Block a user