Skip to main content

Module ast

Module ast 

Source
Expand description

AST types returned by crate::parser::parse.

A CMake file parses into a File containing an ordered list of top-level Statements. Commands carry their argument list (Argument), recognised comment forms (Comment), and the source byte span. The AST preserves blank-line and comment positions so the formatter can round-trip files with stable semantics.

Structs§

BracketArgument
A bracket argument with its “=” nesting level.
CommandInvocation
A CMake command invocation.
File
A parsed CMake source file.

Enums§

Argument
A single argument (or inline comment) in an argument list.
Comment
A CMake comment.
Statement
A top-level statement in a CMake file.