scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

Parser fails on every yield statement. #246

Open Bilge opened 10 years ago

Bilge commented 10 years ago

see Issue (Id: unparsable_code_with_line)

aik099 commented 10 years ago

I guess an Emulative_Lexer needs to be used (for cases, when PHP version used is smaller, then one code for which is parsed), since obviously parsing itself isn't done on PHP 5.6.

Bilge commented 10 years ago

I guess an Emulative_Lexer needs to be used (for cases, when PHP version used is smaller, then one code for which is parsed), since obviously parsing itself isn't done on PHP 5.6.

I don't understand one word of that.

schmittjoh commented 10 years ago

That's fine, we are aware of the issue :) Thanks for opening.

aik099 commented 10 years ago

@Bilge , the PHP Analyzer app, that used on Scrutinizer CI is using https://github.com/nikic/PHP-Parser library to parse PHP code. The Lexer term is from it.

Bilge commented 10 years ago

we are aware of the issue :)

That's nice, but is anything being done about it?