You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple but useful extension is for bounded repetitions. The main issue is the syntax to use for it.
One obvious choice is {count} or {start,end} as in regex. A counterpoint to this is that {...} is used for semantic actions by some parsing frameworks, but I don't anticipate Pe using those.
The behavior would follow regular expressions. Example:
In the {start,end} case, either operand can be omitted to indicate an open range, from 0 to infinity. Thus, .{,} is equivalent to .*, and .{1,} is equivalent to .+.
The text was updated successfully, but these errors were encountered:
A simple but useful extension is for bounded repetitions. The main issue is the syntax to use for it.
One obvious choice is
{count}
or{start,end}
as in regex. A counterpoint to this is that{...}
is used for semantic actions by some parsing frameworks, but I don't anticipate Pe using those.The behavior would follow regular expressions. Example:
In the
{start,end}
case, either operand can be omitted to indicate an open range, from 0 to infinity. Thus,.{,}
is equivalent to.*
, and.{1,}
is equivalent to.+
.The text was updated successfully, but these errors were encountered: