• Log in or sign up for an account here: https://www.sythe.org/login

How do you make a programming language?

  • Thread starter Thread starter cokecoladrunk
  • Start date Start date
C

cokecoladrunk

Guest
Hey guys, just wondering how you make a programming language.. i mean they all started somewhere. I mean how do you make one?
 
You don't. They're very, very hard to make. You use an existing programming language to create a compiler that parses commands and runs them at the system level. Assembly is the best way to make a programming language, but assembly is like writing 0s and 1s. I'm not even kidding. You write DIRECTLY to the memory. It's really messed up. You just don't make one. You leave it to the pros.
 
You don't. They're very, very hard to make. You use an existing programming language to create a compiler that parses commands and runs them at the system level. Assembly is the best way to make a programming language, but assembly is like writing 0s and 1s. I'm not even kidding. You write DIRECTLY to the memory. It's really messed up. You just don't make one. You leave it to the pros.
You're thinking of machine code.
 
Learn ASM and translate your language into it, then compile it. No reason to write an ASM compile... leech an open source one. :D
 
And, in fact, you could write an interpreter in C, or even a high-level language. That's what Nullware and myself did for ABC.
 
Runescape Gamblingrunescape gambling
Back
Top