allow warnings

This commit is contained in:
nora 2021-04-24 15:28:00 +02:00
parent 3b5fb2b528
commit 0d29e477ce
3 changed files with 5 additions and 7 deletions

View file

@ -3,12 +3,13 @@
//!
//! first parse the bf so that it can be executed faster
//! most importantly: loop jumps should be immediate
//!
#![allow(dead_code)]
use std::io::{Read, stdin};
use crate::interpreter::{MEM_SIZE, Memory, minify, parse, Statement};
pub fn run(pgm: &str) -> String {
pub fn _run(pgm: &str) -> String {
let pgm = minify(pgm);
let pgm = parse(pgm.chars().collect());
let out = interpret(&pgm);