Implemented flags and extra safety for zoltraak

This commit is contained in:
2025-03-24 20:25:38 -04:00
parent 9ace3a177d
commit 0be4de0ffe
16 changed files with 3276 additions and 322 deletions

View File

@@ -1,6 +1,4 @@
use parse::{node_operation, NdRule, Node};
use super::super::*;
use super::*;
#[test]
fn parse_simple() {
@@ -170,13 +168,30 @@ esac";
#[test]
fn parse_case_nested() {
let input = "case foo in
foo) if true; then
echo foo
fi
foo)
if true; then
while true; do
echo foo
done
fi
;;
bar) if false; then
echo bar
fi
bar)
if false; then
until false; do
case foo in
foo)
if true; then
echo foo
fi
;;
bar)
if false; then
echo foo
fi
;;
esac
done
fi
;;
esac";
let tk_stream: Vec<_> = LexStream::new(Arc::new(input.to_string()), LexFlags::empty())