functions

This commit is contained in:
2024-07-01 18:24:02 +02:00
parent 001636c799
commit 41c6b99e26
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ mod variable;
fn main() {
let mut vars = Variables::new();
let mut trsp = transpiler::Transpiler::default();
let out = trsp.transpile("{xyz}".to_string(), 0, &mut vars);
let out = trsp.transpile("void main() {int x}".to_string(), 0, &mut vars);
for p in trsp.problems {
println!("{:?}: {}", p.problem_type, p.problem_msg)
}