Subject:
Re: some problem in source code--scan.l
From:
Tamas Rudnai ####@####.####
Date:
10 Jul 2012 15:51:26 -0000
Message-Id: <CAJLb5+S12Mf8iezBJuy9kniW7Zp3mxJhbs5twiLXVvB3FobFPA@mail.gmail.com>
On 9 July 2012 22:27, feqin fan ####@####.#### wrote:
> My job is porting gputils to our own chip that has different instruction
> set.
>
That is a nice challenge! Which chip is that btw?
Tamas
>
> I will be very glad if I can do something for the community.
>
>
>
>
>
> 2012/7/10 Joe Pfeiffer ####@####.####
>
> > feqin fan writes:
> >
> > >BUT,state.src->last_char_is_nl = true, WHERE is the number
> > >*last_char_is_nl* in struct state.src ?
> >
> > I'm not sure I understand the question -- do you mean where is it
> > defined? If so:
> >
> > state is a global variable of type struct gpasm_state, declared on line
> > 35 of gpasm.c. It's defined in gpasm.h.in, starting on line 80.
> >
> > state.src is a field in state, of type struct *source_context.
> >
> > state.src->last_char_is_nl is a field in *state.src. It's defined in
> > gpasm.h.in, on line 299.
> >
> > >--------------------------------------------
> > >
> > >Another problem, the pattern ^{IDENT}#v\( match what?
> > >someone Please give me a example..
> > >
> > >Thank you, guys..
> > >
> > >:-)
> > >
> > >
> > >
> > >------------------------------------
> > >
> > >live long and prosper..
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
> >
> >
>
--
int main() { char *a,*s,*q; printf(s="int main() { char *a,*s,*q;
printf(s=%s%s%s, q=%s%s%s%s,s,q,q,a=%s%s%s%s,q,q,q,a,a,q); }",
q="\"",s,q,q,a="\\",q,q,q,a,a,q); }