Re: Re: Creating an experimental syntax
| From: | Rune Kaagaard | Date: | Wed, 14 Oct 2009 11:57:51 +0000 |
| Subject: | Re: Re: Creating an experimental syntax | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45811@lists.php.net to get a copy of this message | ||
Dear Etienne
Wauw did not know Backus–Naur Form before. That looks like a great
first step. Thx for showing me that!
Cheers
Rune Kaagaard
Denmark
On 10/14/09, Etienne Kneuss <colder@php.net> wrote:
> 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
>