feat(package): hemar: antlr grammar, but still does not work
This commit is contained in:
18
package/hemar/grammar/antlr/HemarParser.g4
Normal file
18
package/hemar/grammar/antlr/HemarParser.g4
Normal 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;
|
||||
Reference in New Issue
Block a user