rustleaf 0.1.0

A simple programming language interpreter written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Parser tracing module - provides trace! macro for debugging parser operations
/// Trace macro that works like println! but writes to PRINT_CAPTURE when available
/// When the parser-tracing feature is disabled, this becomes a no-op
#[macro_export]
macro_rules! trace {
    ($($arg:tt)*) => {
        #[cfg(feature = "parser-tracing")]
        {
            let msg = format!($($arg)*);
            $crate::core::write_to_print_capture(msg);
        }
        #[cfg(not(feature = "parser-tracing"))]
        {
            // No-op when feature is disabled
        }
    };
}