Skip to content

Commit

Permalink
Add functions in expression
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricereix authored and hurl-bot committed Sep 8, 2024
1 parent 64b7e4c commit 5af5889
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/spec/grammar/hurl.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,26 @@ json-number: integer fraction? exponent?

template: "{{" expr "}}"

expr: variable-name (sp filter)*
expr: (variable-name | function) (sp filter)*

variable-name: [A-Za-z] [A-Za-z_-0-9]*


# Function

function:
env-function
| now-function
| uuid-function

env-function: "getEnv"

now-function: "newDate"

uuid-function: "newUuid"



# Filter

filter:
Expand Down

0 comments on commit 5af5889

Please sign in to comment.