[PATCH] D104572: [lit] Add the ability to parse regexes in Lit boolean expressions
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 18 15:03:05 PDT 2021
ldionne added inline comments.
================
Comment at: llvm/utils/lit/lit/BooleanExpression.py:12-18
+ # match_expr
+ # match_expr :: regex
# identifier
+ # regex match_expr
+ # identifier match_expr
# identifier :: [-+=._a-zA-Z0-9]+
+ # regex :: '{{' any-regex '}}'
----------------
I'm not an EBNF expert, but the intent here was to describe that one can alternate `identifier` and `{{regex}}` inside what used to be just an identifier. This is to allow things like `abc{{regex1}}def{{regex2}}ghi`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104572/new/
https://reviews.llvm.org/D104572
More information about the llvm-commits
mailing list