Re: [lisp-snmp] Patch to asn.1 to change from parsergen to a modified cl-yacc
Brought to you by:
binghe
|
From: Chun T. (binghe) <bin...@gm...> - 2009-02-24 07:58:38
|
Hi, John To respect your wishes and still keep the implementation of OID function simple, I has changed the behavior (short-package-name) into a compile-time option. If you update both ASN.1 and SNMP package to newest SVN trunk, you'll find file "features.lisp-expr" in both packages. There's one option in #p"ASN1:features.lisp-expr": ;;; Short package name of MIB packages, disable for expert only. short-package-name If you disable it (either prefix a #+ignre or comment it), and recompile the compiler part of ASN.1 packages, next time when you compile MIB files or just use (snmp:update-mib) to regenerate all MIBs, the new generated files will NOT have short nicknames at all. As before I don't think it's necessary to disable the short package names since it's quite convenient. But if you really don't like it, I hope you would like above solution. Regards, Chun Tian (binghe) On 2009-2-9, at 15:27, John Fremlin wrote: > "Chun Tian (binghe)" <bin...@gm...> writes: > [...] >>> Will this work with the old function? I don't think so, because of >>> the . >> >> No, the #\. is NOT the key, and (oid "ASN.1/SNMPv2-SMI::mib-2.SNMPv2- >> MIB::system") do work with the old (current) OID function, you can >> try >> it yourself. CL readtable is a very good builtin lexer. > > Sorry for the confusion. > > [...] >> Again, #\. is not the key, it is how to add "ASN.1/" to every >> "package >> name" in OID string. > > Maybe using the reader here is asking for a bit too much ;-) > > What are the OID sequences you want to parse? > > package::name > name > .name0.name1.name2 > .1.2.4.5.6 > > This is quite easy to do without the Lisp reader . . . > > [...] > |