sicompiler 1.0.1

A basic compiler for SiCoMe programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Represents the initialization section of a program.
#[derive(Debug)]
pub struct Init {
    dir: String,
}

impl Init {
    pub fn new(dir: &str) -> Init {
        Init { dir: dir.to_string() }
    }

    pub fn dir(&self) -> &str {
        &self.dir
    }
}