Re: Re: Creating an experimental syntax
| From: | Etienne Kneuss | Date: | Wed, 14 Oct 2009 11:41:32 +0000 |
| Subject: | Re: Re: Creating an experimental syntax | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45810@lists.php.net to get a copy of this message | ||
Hello,
On Wed, Oct 14, 2009 at 1:37 PM, Etienne Kneuss <colder@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.kg@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