dawmail333 Posted November 7, 2009 Share Posted November 7, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/ Share on other sites More sharing options...
genericnumber1 Posted November 7, 2009 Share Posted November 7, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/#findComment-952977 Share on other sites More sharing options...
dawmail333 Posted November 7, 2009 Author Share Posted November 7, 2009 Thanks for that, I'll have to learn YACC... Any advice on that? I'd love to build this PHP IDE, because it would have awesome intellisense support. Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/#findComment-953082 Share on other sites More sharing options...
Daniel0 Posted November 7, 2009 Share Posted November 7, 2009 [...] 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? Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/#findComment-953083 Share on other sites More sharing options...
keldorn Posted November 7, 2009 Share Posted November 7, 2009 [...] 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. Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/#findComment-953261 Share on other sites More sharing options...
genericnumber1 Posted November 8, 2009 Share Posted November 8, 2009 [...] 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. Quote Link to comment https://forums.phpfreaks.com/topic/180621-yacc/#findComment-953480 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.