+ 8
Try to create a simple programming language in any scripting language you want ~Challenge~
The challenge is to try to create a simple scripting language in any programming language you want and you have to name,give it a file extension,it must contain:variables,printing statements,if else elseif conditions,builtin functions,user defined-functions,classes(Optional),builtin library's. you can use tokens/lexer/parser/compiler and arrays or json to keep all the reserved keywords. it can compile to any programming language 1 or more.
4 Answers
+ 3
I managed it on my computer in C++, but when I tried here, it was too slow and said no output for a long time before working.
And thatâs a very simple language.
Here is an example of it:
sect mv
rd int â1â
sd a int â1â
rv a int int â1â
rv a float int â1â
rv a double int â1â
rv a bool int â1â
rv a char int â1â
rv a string int â2â
sect cio
out string âINT: â
in int a0
out string âFLOAT: â
in float a0
out string âDOUBLE: â
in double a0
out string âBOOL: â
in bool a0
out string âCHAR: â
in char a0
out string âWORD: â
in string a0
iign
out string âLINE: â
inl a0
cls
outl int a0
outl float a0
outl double a0
outl bool a0
outl char a0
outl string a0
outl string a1
This gets the user to input an integer, a float, a double, a boolean, a char, a string with no spaces, and a string with spaces. It then outputs all of those inputs.
Unfortunately, I then got a BSOD while in the process of making a data backup before I install Linux, so now I have to restart.
+ 8
wow, hard challenge, can you do it? đ
+ 4
@vukan yes and i have
+ 4
Cool jacob very assembly like whats its name