From 4fa881f525ed223e8f37f553fb9fda474a604538 Mon Sep 17 00:00:00 2001 From: Nils <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 16 Jan 2021 23:30:19 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/README.md b/README.md index 532362b..5750043 100644 --- a/README.md +++ b/README.md @@ -1 +1,49 @@ # Hunterlang +A hunter x hunter themed interpreted esoteric programming language. +A the first version of the lexer is done, the parser is still in work. +Some example code: +``` +#Add two numbers +Leorio does say "Number 1" +killua0 hunts Leorio does listen +Leorio does say "Number 2" +killua2 hunts Leorio does listen +killua3 hunts killua0 + killua1 +Leorio does say killua3 +``` + + +``` +#Output the smaller number or both if they are equal +Leorio does say "Number 1" +killua0 hunts Leorio does listen +Leorio does say "Number 2" +killua2 hunts Leorio does listen + Gon wants killua0 > killua1 { + Leorio does say killua1 +} wants killua1 > killua0 { + Leorio does say killua0 +} got { + Leorio does say killua0 + " " + killua1 +} +``` + + +``` +#Read in 2 numbers using a function and output their sum with a function +Read2 Zoldyck gets 0 does { + Leorio does say "Number 1" + killua0 hunts Leorio does listen + Leorio does say "Number 2" + killua2 hunts Leorio does listen +} + +Add Zoldyck gets 2 gives { + illumi0 + illumi1 +} + +Read2 +Leorio does say add killua0 killua1 +``` + +sadly, Github syntax highlighting is not available yet From 5804ef7020c08ad1c9cc030940a65b23b478b2bc Mon Sep 17 00:00:00 2001 From: Nils <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 16 Jan 2021 23:30:46 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5750043..2692eb2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Hunterlang -A hunter x hunter themed interpreted esoteric programming language. -A the first version of the lexer is done, the parser is still in work. +A hunter x hunter themed interpreted esoteric programming language. + +The first version of the lexer is done, the parser is still in work. Some example code: ``` #Add two numbers From 7d6b710b5e36c35cd3bf4c7c851f2512d78c14cc Mon Sep 17 00:00:00 2001 From: Nils <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 16 Jan 2021 23:31:40 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2692eb2..b7ee1b2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Leorio does say "Number 1" killua0 hunts Leorio does listen Leorio does say "Number 2" killua2 hunts Leorio does listen - Gon wants killua0 > killua1 { +Gon wants killua0 > killua1 { Leorio does say killua1 } wants killua1 > killua0 { Leorio does say killua0