Skip to main content

Pure Python library to parse CMake scripts

Project description

cmake_parser is a pure Python parser for CMake code. It is still work in progress, but is reasonably usable. It provides the following features:

  • AST representation of CMake code

  • Correct handling of quoted and bracketed values

  • Variable expansion

  • Basic boolean expression evaluation

Notably missing but planned are:

  • Some operators for boolean expressions

  • Generator expression support

  • Script engine for convenient CMake execution within Python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmake_parser-0.9.2.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distribution

cmake_parser-0.9.2-py3-none-any.whl (19.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page