Jump to content

YACC?


dawmail333

Recommended Posts

I'm looking for the YACC grammar for PHP, so I can construct my IDE (a work in progress)...  Any ideas where I can find one?  Would I have to construct one myself?  (Doesn't sound terribly friendly...)

 

I posted this here because I didn't know where it would go, none of the forums stood out at all.

 

TIA!

Link to comment
https://forums.phpfreaks.com/topic/180621-yacc/
Share on other sites

Your best bet would be to take an existing PHP grammar (see: http://www.phpcompiler.org/doc/latest/grammar.html) and modify it to fit YACC's notation.

 

Edit:

This one LOOKS like yacc's notation, but I'm not sure, I don't have much experience with YACC...

http://gcov.php.net/PHP_5_3/lcov_html/var/php_gcov/PHP_5_3/Zend/zend_language_parser.y.gcov.php

 

Another grammar... http://www.icosaedro.it/articoli/php-syntax-ebnf.txt

Link to comment
https://forums.phpfreaks.com/topic/180621-yacc/#findComment-952977
Share on other sites

[...] because it would have awesome intellisense support.

 

Then why not use existing IDEs such as NetBeans (free) or Zend Studio (not free) that already have that?

 

Some people love to reinvent the wheel.

 

But dude, I totally have an idea for a enneakaidecagonal wheel. Since it has flat sides, it can rest easily when the wheeled structure isn't supposed to move.

 

Don't tell anyone, the patent isn't finalized yet.

Link to comment
https://forums.phpfreaks.com/topic/180621-yacc/#findComment-953480
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.