mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-16 06:15:02 +01:00
doc comments and further testing
This commit is contained in:
parent
5b9dd9ca67
commit
248d07e317
5 changed files with 727 additions and 164 deletions
|
|
@ -1,7 +1,10 @@
|
|||
//!
|
||||
//! The very basic interpreter without any optimizations
|
||||
|
||||
use crate::interpreter::{MEM_SIZE, minify};
|
||||
use std::io::{stdin, Read};
|
||||
|
||||
pub fn run(program: &str) -> String{
|
||||
pub fn _run(program: &str) -> String{
|
||||
let program = minify(program);
|
||||
let out = interpret(program.chars().collect());
|
||||
out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue