Re: [Csnd-dev] Line continuation issue

vlz <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
Steven wrote it. Can we add that whitespace removal to it and see if it does the trick?

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 12 Jun 2024, at 20:42, john <[email protected]> wrote:
> 
> Some thoughts.....
> 
> Looking at Engine/csound_orc.lex in cs6 the lexing of '+' is
> 
> "+"{OPTWHITE}"\n"? {
>                     if (UNLIKELY(strchr(yytext, '\n')))
> 
> csound_orcset_lineno(1+csound_orcget_lineno(yyscanner),
>                                            yyscanner);
>                     return '+';
>                   }
> 
> So the whte space after the plus is removed. So Dave's Code becomes   aout = (adiff  * $CTL_COMBOS_DIFF1) + (adiff2 * $CTL_COMBOS_DIFF2) +
> 
> 
> 
> And so e dse what we get in cs6
> 
> .  Compare this with the Engine.csound_orc.lex in cs7
>> On Tue, 11 Jun 2024, Dave Seidel wrote:
>> 
>> Using develop, this code fails unless I add '\' after each line in the
>> expression:
>>   aout = (adiff  * $CTL_COMBOS_DIFF1) + 
>>          (adiff2 * $CTL_COMBOS_DIFF2) + 
>>          (adiff3 * $CTL_COMBOS_DIFF3) + 
>>          (asum   * $CTL_COMBOS_SUM1)  + 
>>          (asum2  * $CTL_COMBOS_SUM2)  + 
>>          (aprod  * $CTL_COMBOS_PROD)
>> This seems like a regression to me. Is this a known parser issue, or should
>> I make a new ticket?
>> 
> 
> I cannot find the selfsame ode nor a version.  cs6 uses more Flex formats but I think it is lost.
> 
> Who wrote the cs7 lexer?  Was not me and  do not follow it.
> 
> On the other hand mu Head is hurting so thinking is hard
> 
> ==John ff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.