spu-as input syntax/parser

Ian Lance Taylor iant@google.com
Sun Sep 23 23:22:00 GMT 2007


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



More information about the Binutils mailing list