If tokenType matches at the current position, consume it.
true when consumed
Build a token record.
Parse a schedule expression.
Expression (e.g. "every 5 minutes")
Parse an every N <period> clause onto builder.
Parse an on the first / last / Nth clause onto builder.
Parse one or more comma/and-separated range expressions.
Main recursive-descent entry point; drives the builder to completion.
Lowercased expression
Parse an a-b range expression (or a single value).
Consume a time-period token (second/minute/hour/day/…) and call the matching builder method.
Matched token
Scan the next token and normalize its text via CalendarIntervalParser.convertTextTokenValue.
Intentional: pass the outer tokenType through (possibly an array).
convertTextTokenValue only converts when tokenType is a known single regex;
arrays fall through returning the text unchanged — correct for dispatch-style calls.
Matched token with normalized text
Shorthand for this.parseToken(tokenType).text.
Converted token value
Look ahead without consuming; returns the best-matching token for expected.
Regex(es) to try
Matched token (or placeholder)
Consume the next matching token (advances pos).
Generated using TypeDoc
Recursive-descent parser for human-readable schedule text expressions. Drives a ScheduleBuilder to produce a ScheduleDefinition consumable by CalendarIntervalParser.compile. Kept file-local so callers always go through CalendarIntervalParser.parseText.