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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.