This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: spu-as input syntax/parser
- From: Ian Lance Taylor <iant at google dot com>
- To: Timo Schneider <timo dot schneider at s2004 dot tu-chemnitz dot de>
- Cc: binutils at sourceware dot org
- Date: 23 Sep 2007 08:58:52 -0700
- Subject: Re: spu-as input syntax/parser
- References: <200709231501.48286.timo.schneider@s2004.tu-chemnitz.de>
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