[Cs-dev] Can we do something about the spaces before '('?
Date | 2013-11-08 00:38 |
From | Andres Cabrera |
Subject | [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
Hi, I want to take another stab at looking whether we can do better at solving the space and '(' issue in Csound6.In other words, the only current ambiguity (that I can think of) occurs when the first token is an opcode without outputs. It seems to me other cases are not ambiguous. Thoughts? Can this be improved? Cheers, Andrés |
Date | 2013-11-10 17:49 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
bump! On Thu, Nov 7, 2013 at 4:38 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2013-11-10 19:56 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
I'm also eager to hear any thoughts on this! On 10 November 2013 17:49, Andres Cabrera |
Date | 2013-11-10 20:14 |
From | peiman khosravi |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
I can't help obviously but it would be a welcome effort. It's a bit annoying that some old code has broken because of this.
Best,
Peiman On 10 November 2013 19:56, Rory Walsh <rorywalsh@ear.ie> wrote: I'm also eager to hear any thoughts on this! |
Date | 2013-11-12 18:20 |
From | Steven Yi |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
I chatted with Victor and John about this a week or two ago on IRC. Just FYI, I've had in mind to do some exploratory work on a new parser/compiler (I've been calling it parser3, instead of new-new-parser :P). The idea is that it will know even less that what the current parser knows and try to move more of the work to the semantic analyzer. Within that is the plan to figure out how to remove the parentheses ambiguity. I'm still getting reorganized after being in Pittsburgh, but would like to start a branch for this soon. I may do some preliminary work with ANTLR for my own experimentation though before doing the branch and figuring out what changes would be necessary for Flex/Bison.
On Sun, Nov 10, 2013 at 3:14 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2013-11-12 20:26 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
Hi Steven, Thanks for the info. Wow, what an interesting project. Would there be other advantages with this new parser (apart from hours of brain twisting fun :) ) ? Does it open up other possibilities?Cheers, Andrés On Tue, Nov 12, 2013 at 10:20 AM, Steven Yi <stevenyi@gmail.com> wrote:
|
Date | 2013-11-12 20:38 |
From | Steven Yi |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
Well, I see user-defined types and type specifiers as being part of this as well. Moving some of this code around may also help to implement type inference, and also might remove some quirky things like pre-defining UDO's without first being verified. There's also some the issue with labels in the current parser that has proven tricky, and I think a re-design would help with that. This is a bit speculative at the moment though and I'm acting on hunches; I really need to just put some time into it to try it out to proceed.
On Tue, Nov 12, 2013 at 3:26 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2013-11-13 00:45 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Can we do something about the spaces before '('? |
Attachments | None None |
Thanks for the details. Sounds very useful. Cheers, Andrés On Tue, Nov 12, 2013 at 12:38 PM, Steven Yi <stevenyi@gmail.com> wrote:
|