[antlr-interest] Binary support
researcher0x00 at gmail.com
Thu Sep 15 10:36:00 PDT 2011
seems to be an uncharted territory?
There are ANTLR gramamars for it. http://www.antlr.org/grammar/list
*ASN.1* <http://www.antlr.org/grammar/1231433381400/ASN.g> and *SMI/SPPI/ASN.1
Of interest might be
On Thu, Sep 15, 2011 at 1:07 PM, andreas kleiber <kleibi at gmx.net> wrote:
> Hi Eric,
> thanks for the prompt answer.
> > Something you might want to do, but this is reinventing the wheel, is to
> > create your own grammar that defines binary layouts, and then use that as
> > input into a driver that reads the binary file. I have done both of these
> > and the latter is the better option.
> You're describing exact the situation I didn't want to face. ;-)
> The "ANTLR was not designed for binary files" point: This is why I think
> "if ANTLR is another tool for language recognition -- are binary files not
> also languages?". Or in other words: Wouldn't it be the least effort to add
> the functionality to ANTLR? Of course I don't know the ANTLR code at all, so
> I can't really comment on that but if it's designed well I could imagine
> that it would be possible to add at least some of my proposed features.
> BTW I'm wondering that I found so less posts on binary topics. And at least
> I'm not aware of another tool that's able to generate code for reading
> binary files -- seems to be an uncharted territory?
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
More information about the antlr-interest