Skip to content

yvesll/cmake_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmake_parser

Introduction

This is a simple c++ lib which use CMake's own lexical parser to get te AST.

At this point, the cmStandardLexer source file taken from CMake 3.23.3. The lib is aimed to parse a cmake file and output to a structured format like yaml or json.

Build

Clone the project and run the following commands:

mkdir build && cd build
cmake ..
cmake --build . --target cmparser

You can also build the example target to try the lib

cmake --build . --target example

example ../CMakeLists.txt

Then it will print all functions in yaml format

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published