blob: 9ff243ddcb4afe2a1c5fa07bc85a7e89a52b606f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use crate::audio::{parse::parser::Parser, program::Instruction};
pub type Result<T> = std::result::Result<T, String>;
mod lex;
mod macros;
mod parser;
pub fn parse(raw_src: &str) -> Result<Vec<Instruction>> {
let src = macros::process(raw_src);
Parser::new(&src).parse()
}
|