[PR][php-src][#1158][master] - Lexical Feedback
| From: | noreply@php.net | Date: | Sun, 08 Mar 2015 04:27:55 +0000 |
| Subject: | [PR][php-src][#1158][master] - Lexical Feedback | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2640@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1158
Pull Request Description:
This is related to the "Context Sensitive Lexer" RFC: https://wiki.php.net/rfc/context_sensitive_lexer.
This new W.I.P patch is an alternative implementation of https://github.com/php/php-src/pull/1054.
About this new implementation:
- Has no regression risks and is highly predictable
- Has an very small footprint compared to the previous attempt involving a pure lexical approach
- Is highly configurable, to make a word semi-reserved you only have to edit this inclusive [parser
rule](https://github.com/php/php-src/blob/7b840ca468ac29ddc2d17670efd48b4fb879e8f8/Zend/zend_language_parser.y#L273-L282).
- Doesn't require compile time checks
### Tasks
- [x] Pass all tests
- [ ] Port ext tokenizer