mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-26 20:42:01 +03:00
Add filters in spec
This commit is contained in:
parent
7000c17224
commit
eb4dc17ca5
@ -154,7 +154,7 @@ variable-value:
|
||||
|
||||
# Query
|
||||
|
||||
query: main-query (sp subquery)?
|
||||
query: main-query (sp filter)*
|
||||
|
||||
main-query:
|
||||
status-query
|
||||
@ -198,13 +198,6 @@ md5-query: "md5"
|
||||
bytes-query: "bytes"
|
||||
|
||||
|
||||
subquery: regex-subquery | count-subquery
|
||||
|
||||
regex-subquery: "regex" sp (quoted-string | regex)
|
||||
|
||||
count-subquery: "count"
|
||||
|
||||
|
||||
# Predicates
|
||||
|
||||
predicate: ("not" sp )? predicate-func
|
||||
@ -395,20 +388,34 @@ json-string-escaped-char:
|
||||
json-number: integer fraction? exponent?
|
||||
|
||||
|
||||
|
||||
# Template / Expression
|
||||
|
||||
template: "{{" expr "}}"
|
||||
|
||||
expr: variable-name
|
||||
expr: variable-name (sp filter)*
|
||||
|
||||
variable-name: [A-Za-z] [A-Za-z_-0-9]*
|
||||
|
||||
|
||||
# Filter
|
||||
|
||||
filter:
|
||||
regex-filter
|
||||
| count-filter
|
||||
| escapeurl-filter
|
||||
| unescapeurl-filter
|
||||
|
||||
regex-filter: "regex" sp (quoted-string | regex)
|
||||
|
||||
count-filter: "count"
|
||||
|
||||
escapeurl-filter: "escapeUrl"
|
||||
|
||||
unescapeurl-filter: "unescapeUrl"
|
||||
|
||||
|
||||
# Lexical Grammar
|
||||
|
||||
|
||||
|
||||
boolean: "true" | "false"
|
||||
|
||||
null: "null"
|
||||
|
Loading…
Reference in New Issue
Block a user