Restructure markdown highlighter

This commit is contained in:
2025-07-07 11:40:15 +02:00
parent 83ad2068e0
commit 7f93084e64
15 changed files with 683 additions and 600 deletions
+10
View File
@@ -0,0 +1,10 @@
use std::str::FromStr;
grammar;
pub Term: i32 = {
<n:Num> => n,
"(" <t:Term> ")" => t,
};
Num: i32 = <s:r"[0-9]+"> => i32::from_str(s).unwrap();