Reputation:
I am wondering if there is a way to change out the grammar of PHP with my own.
For example:
print
= show
class
= box
function
= item
I have read a little about ANTLR but that looks pretty complicated. Wondering if there is a simple way, like a language file?
Upvotes: 0
Views: 136
Reputation: 215009
No, there's no simple way. Php keywords are hardcoded in the interpreter and there are no means to change them. So, if you don't like them for some reason, you options are basically:
or
Upvotes: 3