idk why i made this lmao
This commit is contained in:
commit
080cbc9fb0
4 files changed
+45
No files matched your search
@@ -0,0 +1,17 @@
|
|||||||
|
# Highly Extreme Level Language (hell)
|
||||||
|
|
||||||
|
HELL is a "programming language" I made when I was bored.
|
||||||
|
|
||||||
|
# How does it work?
|
||||||
|
|
||||||
|
It's a lexical analyzer that translates a custom syntax into C and compiles it.
|
||||||
|
|
||||||
|
That's it.
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
idk copy compiler to $PATH or something
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
|
||||||
|
ill get to it eventually
|
||||||
@@ -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"); }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import hell:std.ioutils
|
||||||
|
|
||||||
|
func
|
||||||
|
main(int argc, str argv[])
|
||||||
|
{
|
||||||
|
while (1) {
|
||||||
|
hell:std.ioutils.writeln("Hello\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user