#define JAM -1 /* to mark a missing DFA transition */
#define NO_TRANSITION NIL
#define UNIQUE -1 /* marks a symbol as an e.c. representative */
-#define INFINITY -1 /* for x{5,} constructions */
+#define INFINITE_REPEAT -1 /* for x{5,} constructions */
#define INITIAL_MAX_CCLS 100 /* max number of unique character classes */
#define MAX_CCLS_INCREMENT 100
* number of times to "ub" number of times
*
* note
- * if "ub" is INFINITY then "new" matches "lb" or more occurrences of "mach"
+ * if "ub" is INFINITE_REPEAT then "new" matches "lb" or more occurrences of "mach"
*/
int mkrep (mach, lb, ub)
base_mach = copysingl (mach, lb - 1);
- if (ub == INFINITY) {
+ if (ub == INFINITE_REPEAT) {
copy = dupmachine (mach);
mach = link_machines (mach,
link_machines (base_mach,
}
else
- $$ = mkrep( $1, $3, INFINITY );
+ $$ = mkrep( $1, $3, INFINITE_REPEAT );
}
| series BEGIN_REPEAT_POSIX NUMBER END_REPEAT_POSIX
}
else
- $$ = mkrep( $1, $3, INFINITY );
+ $$ = mkrep( $1, $3, INFINITE_REPEAT );
}
| singleton BEGIN_REPEAT_FLEX NUMBER END_REPEAT_FLEX