syster-base 0.1.10-alpha

Core library for SysML v2 and KerML parsing, AST, and semantic analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use pest_derive::Parser;

#[derive(Parser)]
#[grammar = "parser/kerml_expressions.pest"]
#[grammar = "parser/sysml.pest"]
pub struct SysMLParser;

#[cfg(test)]
mod tests {
    use super::*;
    use pest::Parser;

    #[test]
    fn test_parser_compiles() {
        let result = SysMLParser::parse(Rule::file, "");
        assert!(result.is_ok());
    }
}