Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/labs/create_checker.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ Regular expressions make it easy to describe many patterns.
However, it's sometimes useful to give certain sequences names, or
use the same sequence in different circumstances.

You can use JavaScript to define values, and even use values to compute
other values. By convention constants are usually in uppercase letters, e.g.,
`FOO = "bar";`. In a template you can use them using `${...}`, for example,
`${FOO}`.

If you doh't want to use JavaScript's mechanisms, there is an alternative.
Checker allows you to define named terms, and then use them in a regular
expression.
This is done in the `definitions` section, which is a sequence
Expand Down