+ 2
How do I make a programming language?
Say you wanted to make a programming language. You wanted to do it in node.js. How would you go about doing it? Would you make a library? Would to make a program to turn input into functions? Please comment down below what you would do.
14 Respostas
+ 5
Hmmm...
Hyperion, Developing a Programming Language Isn't Easy But, Not Impossible!
Personally, Even I've Developed One Called Slang But in Python...
I Have Even Published It But, Is Not Very Stable Yet.
But, There's One Major Problem, Too Many Errors!
You Will Get Many Errors While Developing One.
It Is The Same In All Languages!
Also, You Will Face Problems In:
- Variables
- File Handling
- Releasing A New Version Of Your Language
- And Many More...
+ 3
Here are a few resources that will cover through the basics
https://build-your-own-x.vercel.app/#build-your-own-programming-language
Also, please don't ask for likes and comments, they are of no use and will certainly not help you learn how to code (which happens to be the goal of this app)
+ 2
Thanks Sancho Godinho ! I am trying to make EclipseScript, a language for Eclipse Engine! It is a game engine I making. Think of Unreal Engine, Blender and Roblox studio, all in one place! Made for my game, Genesis.
+ 1
Welcome Hyperion š
+ 1
Please just use Python.
Nobody wants to play a game that has memory run time exception errors. Thatās just asking to get rootkitted
+ 1
XXX I put it wrong. I was asking if they were going to like, comment down what they would do.
+ 1
David Harmon Thanks! I'm going to use a mixture of node.js and Python.
+ 1
I would use the eval() function. Just use replaceAll() to convert to javascript
C# compiler:
input:
int h = 5;
code:
var a = (whatever you want to get input)
a = a.replaceAll(āintā, āvarā);
eval(a);
And console.log doesnt work with eval() so you would have to some innerHTML stuff, but it has worked with previous projects of mine
heres a simple one
https://code.sololearn.com/WWKH6bkiU9DE/?ref=app
0
Thank you for the likes, but if you are going to like, can you like AND comment. This is an open floor reddit.
0
Please take a look at the forum rules:
https://www.sololearn.com/Content-Creation-Guidelines/
https://www.sololearn.com/Discuss/1316935/?ref=app
0
Simon Sauter What is that link for?
0
Hyperion the forum rules.
- 2
I live here. Get lost