pub struct Script {
pub name: String,
/// The providers of the probes that have been used in the Script.
pub providers: HashMap<String, Provider>,
pub fns: Vec<Fn>, // User-provided
pub globals: HashMap<String, Global>, // User-provided, should be VarId
pub global_stmts: Vec<Statement>,
}
What does user-provided global means? What is the different between globals and global_stmts? Since declaring a global in front of script is Statement::Decl
deals with #66
@wavid-b can you check the output for
test_global_stmts
? The scriptGives me the following AST:
I also have a question on
What does user-provided global means? What is the different between
globals
andglobal_stmts
? Since declaring a global in front of script isStatement::Decl