petr-ast 0.1.0

AST types for the petr language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Ast;

/// Describes the AST of a dependency package
pub struct Dependency {
    /// The unique key that identifies this source package, agnostic of the alias given to it in
    /// the manifest file
    pub key:          String,
    /// The name of the package as given in the manifest file
    pub name:         String,
    /// The keys of any packages that this package depends on
    pub dependencies: Vec<String>,
    /// The AST of the source code of this package
    pub ast:          Ast,
}