diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-03-17 09:44:06 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2022-11-04 13:35:40 +0100 |
commit | 2bb9a66b0e06c34a41751ec074818da25b624d83 (patch) | |
tree | 5a202d7bdf6ea9e96a52141a3a331c091a6f703e | |
parent | cf30b2ccefcf5cb1afdd65b9c462b64992af9ea6 (diff) | |
download | pyg-2bb9a66b0e06c34a41751ec074818da25b624d83.tar.gz |
-rw-r--r-- | wlp_parser.py | 6 |
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 |