From 145efc39d14c242266c574063ffcba329c62e8a3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 19 Jul 2025 15:24:30 +0900 Subject: implement parsing --- src/syntax/ast.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/syntax/ast.rs (limited to 'src/syntax/ast.rs') diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs new file mode 100644 index 0000000..bb12e81 --- /dev/null +++ b/src/syntax/ast.rs @@ -0,0 +1,11 @@ +pub struct Regex { + pub root: Box, +} + +pub enum Pattern { + Empty, + Literal(u8), + Concat(Box, Box), + Alt(Box, Box), + Star(Box), +} -- cgit v1.2.3-70-g09d2