aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wlp_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wlp_parser.py b/wlp_parser.py
index 35da516..fd484ed 100644
--- a/wlp_parser.py
+++ b/wlp_parser.py
@@ -9,10 +9,10 @@ __lg.add("VAR", r'[a-zA-Z0-9_<>-]+[:]?')
__lg.ignore(r"\s+")
__lg.ignore(r'[{}=]+')
-lexer = __lg.build()
+lex_user = __lg.build()
-__pg = rply.ParserGenerator(['OWNER', 'VAL', 'VAR'],
- cache_id='wlp_parser')
+__pg = rply.ParserGenerator([rule.name for rule in lex_user.rules],
+ cache_id='prosody_user_parser')
"""
$accept ::= block $end