I found it very difficult to understand the OP, but I do believe, the OP is in the process of inventing "Higher-Order Perl"
Ch2 especially explains a dispatch-table based config file parser
In reply to Re^2: Creating parser for some syntax
by Anonymous Monk
in thread Creating parser for some syntax
by andal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |