[antlr-interest] new fish with binary file scanning problem
Qihui Zhang
qzhang at mcs.suffolk.edu
Mon Aug 22 10:44:39 PDT 2005
Hi,
I'm trying to scan/parse the binary file, which has part header
decription like this.
Field Type
[N]bits UB(5)
A SB(N)
B SB(N)
since A and B have to be determined by the first 5 bits, I'm sort of
stuck on how to define my lexer to have dynamic processing. is there any
good solution or idea on dynamically parsing, something like Syntactic
Predicates
http://www.antlr.org/doc/metalang.html#SyntacticPredicates
Thanks a lot~~
More information about the antlr-interest
mailing list