Skip to content

Playground

This playground runs stringent’s runtime engine (safeParse + evaluateAst) right in your browser, against the quickstart grammar from Getting Started: number, string and true/false literals, variables and dotted paths, parentheses, == (overlap-typed), + (overloaded for numbers and strings), *, and a short-circuiting ternary.

Type an expression — parse errors show the exact position and what would have been valid there.

Expression
Result
"yes" (string)
Schema & values
schema = {
  "x": "number",
  "user": {
    "name": "string",
    "age": "number"
  }
}

values = {
  "x": 21,
  "user": {
    "name": "Ada",
    "age": 36
  }
}