Related articles |
---|
Newbie Q - Grammer rules for parsing HEX string in BISON spacemonkeyxyz-google@yahoo.co.uk (2004-08-23) |
Re: Newbie Q - Grammer rules for parsing HEX string in BISON spacemonkeyxyz-google@yahoo.co.uk (2004-08-25) |
Re: Newbie Q - Grammer rules for parsing HEX string in BISON vbdis@aol.com (2004-09-03) |
From: | spacemonkeyxyz-google@yahoo.co.uk (Space Monkey) |
Newsgroups: | comp.compilers |
Date: | 23 Aug 2004 12:11:16 -0400 |
Organization: | http://groups.google.com |
Keywords: | parse, yacc, question |
Posted-Date: | 23 Aug 2004 12:11:16 EDT |
Hi,
I am new to BISON and am trying to setup the grammer rules for parsing
a hex string in BISON.
I am using the mfcalc example at
http://dinosaur.compilertools.net/bison/bison_5.html and trying to
parse a file containing strings such as,
DEFINE Key1 0x01C8
and
SET Key1 0xAC,0xE5,0x31,0x2A,0x4C,0x1D,0x56,0xEA,0x33,0xE9,0x2E,0x14,0xA2,0xFA,0x4A,0x18
Can anyone help with the grammar?
thanks
SM
Return to the
comp.compilers page.
Search the
comp.compilers archives again.