A few days ago I decided I wanted to make a programming language, so I designed the syntax and I think I have it now but than I thought now what what do I do next after designing the syntax do I build it in C#, Python or what? Basically all I want to know is what I'm doing after I created the lexer
Here is an example code in case this helps
Here is an example code in case this helps
Code:
//My programming language
String data = "My programming language"; //This creates a string variable like in C
Func clicked() { //"Func" does not immediately execute the program inside unless called in a "Run"
Print, "Button Clicked", console; //Print prints the following string to the "console" (at the end of print)
}
Run Loop() { //Does immediately execute the program. How? (Or name if lowercase) It will "Loop()"
Button, "Click Me", clicked(), style: button; //Button creates a button, the next section displays on the text (or icon) on the button, the next section tells it what to do when the button is clicked, "style:" styles the button the following variable is the style
if(TIME(sec) < 10) {//if it runs for more than ten seconds close it
END; //end the code (for instance you want to close a window in the EthanOS (My OS) you use END; to close the window
Will not do anything in anything else
}
}
Style button {//use a CSS like code to style things
background-color: blue;
color: white;
border: none;
border-radius: 25px;
//Styles the button
}