Re: [alexander.schrijver@gmail.com: Re: [PHP-DEV] RE: [SPAM] Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON]
| From: | jvlad | Date: | Wed, 03 Nov 2010 21:21:33 +0000 |
| Subject: | Re: [alexander.schrijver@gmail.com: Re: [PHP-DEV] RE: [SPAM] Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON] | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50094@lists.php.net to get a copy of this message | ||
>
> Yes, there is a reason:
>
> As it was explained before, lemon would not display token names but
> actual token "values". So instead of "Unexpected T_PAABLAH" it would say
> "Unexpected '::' ..."
>
hello,
value of some tokens is not what would be expected either. Think a bit about
T_STRING for example.
There should be a smart algorithm implemented.
BTW bison-createdparsercan use a callback (yytnamerr) to replace tokens with
something human-readable. Why not use it?