Learning parsing with C++ -
i want learn basics of parsing c++.
for matter thought of simple configuration language might this:
/* same comment syntax in c++ keywords: "section" = begins new section block "var" = defines new var ... */ section mysection { // valid: section "mysection" { ... } var somevar = "foo"; section stuff { var things = "data"; }; };
dummy grammar:
"section" <section_name> "{" <block> "}" ";" "var" <name> "=" <value> ";"
now wonder find beginners tutorial might cover project?
the wikipedia entry on recursive descent parsers should started.
Comments
Post a Comment