raindog308 has asked for the wisdom of the Perl Monks concerning the following question:
# comment
# comment
global {
option_one => some value,
option_two => some value
}
table {
name => blah,
some_opt => blah,
columns => {
col1 {
col_option => stuff,
col_option2 => stuff
}
col2 {
col_option => stuff
}
}
}
I'm not wedded to this syntax - I'm working on specifying it from the user side - but in general there's several blocks, each of which have directives (not all of which always appear), and some directives have sub-directives.
My question...is this a job for Parse::RecDescent? I've never worked with BNF grammar before.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is this a job for Parse::RecDescent?
by roboticus (Chancellor) on Nov 29, 2010 at 23:33 UTC | |
by aquarium (Curate) on Nov 30, 2010 at 00:17 UTC | |
|
Re: Is this a job for Parse::RecDescent?
by JavaFan (Canon) on Nov 29, 2010 at 23:22 UTC | |
by ikegami (Patriarch) on Nov 29, 2010 at 23:50 UTC | |
|
Re: Is this a job for Parse::RecDescent?
by kcott (Archbishop) on Nov 30, 2010 at 07:03 UTC | |
by Anonymous Monk on Nov 30, 2010 at 08:08 UTC | |
|
Re: Is this a job for Parse::RecDescent?
by locked_user sundialsvc4 (Abbot) on Nov 30, 2010 at 17:37 UTC |