Chilon

Argument parser to help you with your work.
Download

Chilon Ranking & Summary

Advertisement

  • Rating:
  • Publisher Name:
  • James tuxjay
  • Operating Systems:
  • Windows All
  • File Size:
  • 600 KB

Chilon Tags


Chilon Description

A C++0x utility library The most advanced parts are a command-line argument parser and a parser generator library based on parsing expression grammars with built in AST generation abilities. chilon::parser chilon::parser is a C++0x template library that allows parsers based on PEG grammars to be created using templates. chilon::parser is built using the TBPEG variant of PEGs which allows an appropriate AST type to be built by the grammar in addition to the parser. Parsers built with chilon::parser are capable of populating the AST using the same grammar used to create the parsing algorithm. The TBPEG variant of PEG notation is discussed in this paper. To get a feel for how expressive chilon::parser is, here is an example parser that stores a subset of javascript (variable declarations and infinitely nested function declarations) in a very neat AST containing a custom class in less than 25 lines of source code:


Chilon Related Software