Skip to content

Commit

Permalink
Add priv_id parser rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugyi200 committed Sep 20, 2024
1 parent 42eeee6 commit 33ed0e2
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 607 deletions.
3 changes: 2 additions & 1 deletion src/zorg/grammar/ZorgFile.g4
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ simple_prop : id COLON COLON simple_prop_value ;
simple_prop_value : id | url ;
inline_prop : '[' id COLON COLON SPACE? id_group (SPACE id_group)* ']';
id_group : id (any_sym+ | id)* ;
id : ID | NUM_ID | PRIORITY | date | time | zid | url | https | LOWER_O | LOWER_X ;
id : priv_id ;
priv_id : ID | NUM_ID | PRIORITY | date | time | zid | url | https | LOWER_O | LOWER_X ;
date : DATE ;
time : TIME ;

Expand Down
3 changes: 2 additions & 1 deletion src/zorg/grammar/zorg_file/ZorgFile.interp

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/zorg/grammar/zorg_file/ZorgFileListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,15 @@ def exitId(self, ctx:ZorgFileParser.IdContext):
pass


# Enter a parse tree produced by ZorgFileParser#priv_id.
def enterPriv_id(self, ctx:ZorgFileParser.Priv_idContext):
pass

# Exit a parse tree produced by ZorgFileParser#priv_id.
def exitPriv_id(self, ctx:ZorgFileParser.Priv_idContext):
pass


# Enter a parse tree produced by ZorgFileParser#date.
def enterDate(self, ctx:ZorgFileParser.DateContext):
pass
Expand Down
Loading

0 comments on commit 33ed0e2

Please sign in to comment.