Re: Can we "add" keywords?
| From: | Mike | Date: | Mon, 02 Dec 2013 17:17:43 +0000 |
| Subject: | Re: Can we "add" keywords? | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-11344@lists.php.net to get a copy of this message | ||
On Mon, 2013-12-02 at 13:24 +0100, Kevin Ingwersen wrote:
> Hey!
>
> I got started with objective C and reeeally like it. But it got me an
> idea I thought about: Is it actually possible to add/change a keyword
> in PHP from an extension?
>
> Like if i wanted to change interface to @interface and class to
> @implement - is that even possible? And for adding a keyword, I thought
> about something like echo - which is like „a function without
> brackets“. Is that possible as well?
No, all these things are "hardcoded" in the parser.
--
Regards,
Mike