Restructure markdown highlighter

This commit is contained in:
2025-06-13 22:08:53 +02:00
parent 83ad2068e0
commit 7f93084e64
15 changed files with 683 additions and 600 deletions

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();