+ 4

Can you create your own programing language?

10th May 2019, 10:07 AM
Darcy Dev
Darcy Dev - avatar
3 Respostas
+ 1
You can make an interpreter in the language you know already. Interpreters are much easier than compilers, so you should start with that first. It's not that hard. First, build a lexer which will split all lines to tokens, and based on the tokens do some operations. This is essentially what all interpreters do.
10th May 2019, 10:42 PM
inxanedev!
inxanedev! - avatar
0
Sure. That's often used to hide implementation details and builds a so called Domain Specific Language. But you can also develop another programming language. Google compiler design, formal language, grammar, ... and start your journey.
10th May 2019, 10:12 AM
Daniel Adam
Daniel Adam - avatar
0
Yes, you can do this. You should describe your language using BNF. And then create a compiler with tools such as Flex Bison .
10th May 2019, 10:15 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar