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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -