* spu-as input syntax/parser
@ 2007-09-23 15:59 Timo Schneider
2007-09-23 23:22 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Timo Schneider @ 2007-09-23 15:59 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
Hello,
I am currently writing a program which has to parse Cell BE SPU assembly
generated, for example, by spu-gcc -S. This is exactly the same that
spu-as does.
So I thougt I could find the GNU assembly grammar in (E)BNF or alike and
build a simple parser with flex/bison. Unfortunately I didn't find such a
grammer neighter in binutils/gas source nor in the binutils/gas manual
(only a description of the syntax in text form was available there).
Maybe one of you can tell me where to find the binutils/gas input grammar?
Regards,
Timo
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: spu-as input syntax/parser
2007-09-23 15:59 spu-as input syntax/parser Timo Schneider
@ 2007-09-23 23:22 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2007-09-23 23:22 UTC (permalink / raw)
To: Timo Schneider; +Cc: binutils
Timo Schneider <timo.schneider@s2004.tu-chemnitz.de> writes:
> So I thougt I could find the GNU assembly grammar in (E)BNF or alike and
> build a simple parser with flex/bison. Unfortunately I didn't find such a
> grammer neighter in binutils/gas source nor in the binutils/gas manual
> (only a description of the syntax in text form was available there).
>
> Maybe one of you can tell me where to find the binutils/gas input grammar?
Most gas targets do not use a bison grammar. No gas targets use flex.
Most assembly languages are easy enough to parse anyhow.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-23 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-23 15:59 spu-as input syntax/parser Timo Schneider
2007-09-23 23:22 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).