diff options
Diffstat (limited to 'wlp_lex.py')
-rw-r--r-- | wlp_lex.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/wlp_lex.py b/wlp_lex.py deleted file mode 100644 index 2cd912b..0000000 --- a/wlp_lex.py +++ /dev/null @@ -1,12 +0,0 @@ -import rply - -lg = rply.LexerGenerator() -# Add takes a rule name, and a regular expression that defines the rule. -lg.add("OWNER", r'<[a-zA-Z0-9_.+-]+@[a-zA-Z0-9._-]+>') -lg.add("VAL", r'[\'`"][a-zA-Z0-9@_+.<>() -]+[\'`"]') -lg.add("VAR", r'[a-zA-Z0-9_<>-]+[:]?') - -lg.ignore(r"\s+") -lg.ignore(r'[{}=]+') - -lexer = lg.build() |