2024-05-09 16:41:59 -05:00
|
|
|
#![feature(noop_waker)]
|
2024-05-10 08:29:11 -05:00
|
|
|
#![feature(non_null_convenience)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#![feature(const_mut_refs)]
|
|
|
|
|
2024-05-09 16:41:59 -05:00
|
|
|
#[macro_export]
|
|
|
|
macro_rules! run_tests {
|
|
|
|
($runner:path: $($name:ident => $input:expr;)*) => {$(
|
|
|
|
#[test]
|
|
|
|
fn $name() {
|
|
|
|
$crate::tests::run_test(std::any::type_name_of_val(&$name), $input, $runner);
|
|
|
|
}
|
|
|
|
)*};
|
|
|
|
}
|
|
|
|
|
|
|
|
mod codegen;
|
|
|
|
mod lexer;
|
|
|
|
mod parser;
|
|
|
|
mod tests;
|
|
|
|
mod typechk;
|
|
|
|
|
|
|
|
pub fn try_block<R>(f: impl FnOnce() -> R) -> R {
|
|
|
|
f()
|
|
|
|
}
|