Good recources on creating programing languages/compilers?
Posted: Mon Apr 03, 2017 7:13 pm
Hey, I know this is probably a really idiotic question to ask but does anyone here know any good recourses on making a custom programing language/compiler? I have made a simple scripting language for my up-coming OS and I plan to have a compiler for it. It probably wont help much but here is some sample code:
Thank you in advance
Code: Select all
~/Comments are enclosed in '~/' and ended in '/~'. Can be multi-line /~
req 'path/to/api' ~/ Loads an API /~
bool t set True ~/ Sets a Boolean variable 't' to True /~
~/ Variable types are integer(int), float(flt), Boolean(bool), character(char) and memory address (mem) ~/
IF(t) START ~/ If t is true it will execute the code ?/~
~/ Stuffs to do... /~
ELIF(1<2) ~/ IF the if statement was false it checks this /~
~/ Stuffs to do... /~
ELSE ~/ If no statement is true then it runs this /~
~/ Stuffs to do... /~
END