[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
modifying parse-asn1.y
Hi!
I have an asn.1 file that cointains the following part of code:
testO OPERATION ::=
{
ARGUMENT VI-Operation
RESULT {VI-Result}
}
VI-Operation ::= [OperationID] CHOICE ......
VI-Result ::= [ResultID] CHOICE .....
This part of code can be compilled with asn1c, but I get parse error if I compille with esnacc.
I examined from the parse-asn1.y file, the the esnacc understand the old OPERATION syntax:
testO OPERATION
ARGUMENT OCTET STRING (SIZE (10))
RESULT INTEGER (1..8)
ERRORS {unknown, unavailable}
::= localValue:1
I tried to modify the parse-asn1.y and re-build the escnacc again, but the new generiert parse-asn1.c seems to be wrong. The re-build esnacc doesn't work at all.
My question is, why does the esnacc fails, If I remove the parse-asn1.c and I let him to be generated from the parse-asn1.y? Probalby my bison is wrong?
I tested it on debian etch.
Thanks
Gabor Matyi
__________________________________________________
Paulo Coelho új könyve a Bookline-on! Jegyezze elő!