It  turns out that antlr is able to handle something very close to the ABNF grammar so you dont have to do much rewriting at all. The trick is to be able to do kleenie (sp? Its been a long time since CS430 :-)  closure on non-terminals. Yacc does not give you that. However, other tools such as metamata parse and antlr do ( but metamata parse hase some other limitations that make it unsuitable).

Ranga.
 

David Frascone wrote:

Obviously what he wants is tye lex/yacc grammar.  That question gets asked
here about once a month.  The ABNF grammars are almost useless for parser
generation.
 
-- 
M.Ranganathan
NIST Advanced Networking Technologies Group,
100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. 
Tel: 301 975 3664 Fax: 301 590 0932
 


Reply via email to