whiley_file 0.1.0

An API for manipulating files written in the Whiley Programming Language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::ast::AbstractSyntaxTree;

struct WhileyFile {
    ast : Box<AbstractSyntaxTree>
}

impl WhileyFile {
    pub fn from_str(input: &str) {
	let mut ast = AbstractSyntaxTree::new();
	let mut parser = Parser::new(input,&mut ast, source_mapper);
	// Parse the file
	
	// Done
	WhileyFile{ast:Box::new(ast)}
    }
}