@ndrewxie/

Set-Basic

Rust

No description

fork
loading
Files
  • main.rs
  • main.4s37gsrti678ik8u.rcgu.o
  • main.main.7rcbfp3g-cgu.0.rcgu.o
  • main.main.7rcbfp3g-cgu.1.rcgu.o
  • main.main.7rcbfp3g-cgu.10.rcgu.o
  • main.main.7rcbfp3g-cgu.11.rcgu.o
  • main.main.7rcbfp3g-cgu.12.rcgu.o
  • main.main.7rcbfp3g-cgu.13.rcgu.o
  • main.main.7rcbfp3g-cgu.14.rcgu.o
  • main.main.7rcbfp3g-cgu.15.rcgu.o
  • main.main.7rcbfp3g-cgu.2.rcgu.o
  • main.main.7rcbfp3g-cgu.3.rcgu.o
  • main.main.7rcbfp3g-cgu.4.rcgu.o
  • main.main.7rcbfp3g-cgu.5.rcgu.o
  • main.main.7rcbfp3g-cgu.6.rcgu.o
  • main.main.7rcbfp3g-cgu.7.rcgu.o
  • main.main.7rcbfp3g-cgu.8.rcgu.o
  • main.main.7rcbfp3g-cgu.9.rcgu.o
  • parser.rs
  • prog.rs
  • tester.rs
  • tests.rs
  • utility.rs
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/// Test mode 1 runs all tests without doing anything else, test mode 2 runs all tests and runs the program if all tests succeed, and test mode 3 runs the programs without running tests.
const TEST_MODE: usize = 1;

mod tester;
mod prog;
mod tests;
mod parser;
mod utility;

fn main() {
    if TEST_MODE == 1 {
        tests::test();
    }
    else if TEST_MODE == 2 {
        let (flag, _) = tests::test();
        if flag {
            prog::prog();
        }
    }
    else {
        prog::prog();
    }
}