mcvm_parse 0.1.0

Package script lexing and parsing for mcvm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub static METADATA_ROUTINE: &str = "meta";
pub static PROPERTIES_ROUTINE: &str = "properties";
pub static INSTALL_ROUTINE: &str = "install";
pub static UNINSTALL_ROUTINE: &str = "uninstall";

/// Returns if a routine name is reserved for use by mcvm
pub fn is_reserved(routine: &str) -> bool {
	routine == METADATA_ROUTINE
		|| routine == PROPERTIES_ROUTINE
		|| routine == INSTALL_ROUTINE
		|| routine == UNINSTALL_ROUTINE
}