BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Syntax::Regex::SolitaryQuantifier

Compilation error due to a regex quantifier without preceding atom

class X::Syntax::Regex::SolitaryQuantifier does X::Syntax { }
Code

Syntax error when a stand alone quantifier (without a preceding atom to quantify) is encountered in a regular expression.

For example

/ * /;
Code

dies with

===SORRY!===
Quantifier quantifies nothing
Code