Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Parsing CCL (Common Command Language) commandsby JaWi (Hermit) |
on Oct 17, 2002 at 11:57 UTC ( [id://205990]=note: print w/replies, xml ) | Need Help?? |
Well, you could use Yapp or YALALR to create a LALR parser for you according to a specific (Yacc like) grammar. Since yours is already clearly defined in BNF there shouldn't be much trouble converting it.
Since you didn't specify a particular database, I assume you're free to choose. In that case I would suggest MySQL, since it has this nice RegExp feature, where you can query according to some (simplified) regular expression. Hope it helps (a bit), -- JaWi "A chicken is an egg's way of producing more eggs."
In Section
Seekers of Perl Wisdom
|
|