lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tablature - my 1.6 proposal


From: Han-Wen Nienhuys
Subject: Re: Tablature - my 1.6 proposal
Date: Sat, 7 Sep 2002 17:43:53 +0200

address@hidden writes:
> Han-Wen Nienhuys wrote:
> 
> >>>I committed the \5 stuff into CVS.
> 
> Whoops, yes you did.
> Well, problem is that one needs more than 9 strings on some instruments.
> I was able to produce this ugly thing:
> 
>       E_DIGIT  {
>               String_number_req* s = new String_number_req;
>               s->set_mus_property ("string-number",  gh_int2scm($1));
>               s->set_spot (THIS->here_input ());
>               $$ = s;
>       }
>       | E_DIGIT DIGIT {
>               String_number_req* s = new String_number_req;
>               s->set_mus_property ("string-number",  gh_int2scm($1*10+$2));
>               s->set_spot (THIS->here_input ());
>               $$ = s;
>       }
> 
> But I could not do it in a clean way (i.e. scan an escaped bare unsigned)

what did you try? It shouldn't be hard: scan for \\[0-9]+ in lexer.ll


-- 

Han-Wen Nienhuys   |   address@hidden   |   http://www.cs.uu.nl/~hanwen 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]