chilon::parser tutorial

  1. Parse a single javascript variable definition.
  2. Using many<>. Parser many variable definitions.
  3. Using lexeme<>. Correct the variable identifier syntax.
  4. Using choice<>. Allow functions and variables to be mixed and improve the identifier syntax.
  5. Storing parse results in custom classes.
  6. Using simple_node<> to allow parsing rules to refer to themselves recursively.
  7. Building operator trees and using tree_*<> rules to eliminate unnecessary AST nodes.
  8. A fully functional parser for an extended PEG notation that contains AST building enhancements as found in chilon::parser.
  9. Using key<> to stored hash maps.
  10. Using key<> to hash choice.
previous | next