feat(package): hemar: antlr grammar, but still does not work

This commit is contained in:
2025-11-26 14:48:51 +00:00
parent 8a08272f68
commit 777d48bf3d
16 changed files with 282 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
parser grammar HemarParser;
options { tokenVocab=HemarLexer; }
hemar : element*? EOF ;
element
: TEXT
| segment
| interpoltion
;
segment : for element*? end;
for : LeftBrace For Path In Path RightBrace;
end : LeftBrace End RightBrace;
interpoltion : LeftBrace Path RightBrace;