-
Notifications
You must be signed in to change notification settings - Fork 13
Regex operators for sequences #12
Copy link
Copy link
Open
Labels
Description
From clojure.spec, but we need to rename some as ?, + and * are not valid in javascript identifiers.
catalt?=> qm? atMostOne?+=> plus? atLeastOne?*=> star? any?
So that we could
import {define, spec} from 'js.spec'
define("ingredient", spec.cat(
"quantity", spec.number,
"unit", spec.string))
define("odds-then-maybe-even", spec.cat(
"odds", spec.plus(spec.odd),
"even", spec.star(spec.even)))Check to what extent we can leverage pamatcher.
Reactions are currently unavailable