Try to create a simple programming language in any scripting language you want ~Challenge~ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

16th Jan 2018, 5:49 PM
Zeke Taylor
Zeke Taylor - avatar
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.
27th Feb 2018, 9:05 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 8
wow, hard challenge, can you do it? 😁
27th Feb 2018, 8:26 PM
Vukan
Vukan - avatar
+ 4
@vukan yes and i have
27th Feb 2018, 10:36 PM
Zeke Taylor
Zeke Taylor - avatar
+ 4
Cool jacob very assembly like whats its name
27th Feb 2018, 10:37 PM
Zeke Taylor
Zeke Taylor - avatar