Hello, On Wed, Oct 14, 2009 at 1:37 PM, Etienne Kneuss <col...@php.net> wrote: > Hello, > > one problem that immediately pops out is that you have a parsing > ambiguity between an argument list and a concatenation of strings as a > single argument. > > You should start by producing a BFN version of your desired grammar. > Such errors should then be more apparent.
*BNF Also, the scala parser is quite complicated and some of its features end up being quite tricky grammar-wise, porting scala-like grammars to PHP would most likely require you to do major rewrites of the grammar, I'd rather advise you to start with very small grammar changes. Best, > > Best, > > On Wed, Oct 14, 2009 at 1:15 PM, Rune Kaagaard <rumi...@gmail.com> wrote: >> Dear internals >> >> I'm slowly getting to know more about bison and language parsing. A >> new world for me. But progress is still slow. I have made an example >> of the syntax I am looking to achieve at >> http://code.google.com/p/php-alternative-syntax/ . If any of you c >> gurus could help me with the best method to attack the problem I would >> be very grateful! >> >> Cheers >> Rune Kaagaard >> Denmark >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > > -- > Etienne Kneuss > http://www.colder.ch > -- Etienne Kneuss http://www.colder.ch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php