From: fatih b. <fat...@ya...> - 2007-08-17 11:22:36
|
Hi everybody,=0A=0AI am a university student and I am working in a telecomu= nication company.=0AI am searching more than one week for an open source a= sn.1 to java parser/compiler and I found cryptix's asn.1 tool..=0AThis tool= is for DER docoding/ encoding=0ABut I want to do BER processing.. I want t= o use cryptix for only parsing my asn.1 input file which is a text file and= includes some asn.1 definitions like :=0A=0AExampleProtocol DEFINITIONS := :=3D=0ABEGIN=0A ExampleProtocolMessage ::=3D CHOICE {=0A =0A = rlcGeneralBroadcast RlcGeneralBroadcast,=0A }=0A RlcGeneralBr= oadcast ::=3D [APPLICATION 0] SEQUENCE {=0A =0A d= uplexMode DuplexMode,=0A fr= ameOffset FrameOffset,=0A=0A } =0A Dupl= exMode ::=3D ENUMERATED {fdd(0), tdd(1)}=0A FrameOffset = ::=3D INTEGER (0 | 8..20)=0A=0AEND=0A=0AIn the cryptix-asn1 tool it is = writing that open source SableCC(a compiler compiler tool) is used for pars= ing and there is a file "ASN1-004.grammar" which icludes the asn.1 language= definitions in BNF format to use in SableCC(at least I think so..) I am no= t sure about this.. =0AI tried to look the source code very closer but it i= s still not clear in my mind.. Can I use this asn.1 tool (or the grammer f= ile : "ASN1-004.grammar") to parse my asn.1 input file ? (at the end, I wan= t to generate java classes of the data types which are defined in the input= file)=0A(then later I may write my own BER encode/decode methods..)=0A=0AC= an anyone please help me about that ? =0A=0AThanks=0ABest regards=0AFatih= =0Afatihbatuk.blogspot.com=0A=0A=0A=0A=0A =0A________________________= ____________________________________________________________=0ABuilding a w= ebsite is a piece of cake. Yahoo! Small Business gives you all the tools to= get online.=0Ahttp://smallbusiness.yahoo.com/webhosting |