C
C
Cesar12017-04-03 16:37:01
Programming
Cesar1, 2017-04-03 16:37:01

How to make your programming language based on php?

Let's say I want to write in php to display text not echo, but con. How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2017-04-03
@Cesar1

There are several options.
1) Write your own compiler / interpreter - a chore, a long time.
2) Intervene in the current compiler / interpreter - source codes are needed, and also most likely for a long time
3) Write your own framework in the same language - the language will formally remain the same, the logic of the language will also, but you can reorder the echo operator. But at the same time, echo itself will remain the same functional
4) Writing a translator from your language to any other is the most fashionable option today.

J
Justin Bieber, 2017-04-03
@JustinBieber

whoever executes php code should be touched))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question