# oni-comb-toys-rs WIP A Toys language implementation by oni-comb-rs [Toys](https://github.com/kmizu/toys) is a simple scripting language. ```rust fn main() { let source = r#" fn fizz_buzz(i) { if ((i % 3 == 0) && (i % 5 == 0)) { println("FizzBuzz"); } else if (i % 3 == 0) { println("Fizz"); } else if (i % 5 == 0) { println("Buzz"); } else { println(i); } } fn main() { println("----"); for (i in 1 to 100) { fizz_buzz(i); } println("----"); } "#; let input = source.chars().collect::>(); let result = program().parse(&input).to_result().unwrap(); println!("{:?}", result); Interpreter::new().call_main(result); } ``` ## Other implementations - https://github.com/kmizu/toys - https://github.com/yuk1ty/toy-lang - https://github.com/pione30/toysrust