JFlex
public final class SemCheck extends Object
Method Summary | |
---|---|
static void | check(RegExps rs, Macros m, File f)
Performs semantic analysis for all expressions.
|
static boolean | isFiniteChoice(RegExp re)
Returns true iff the expression is a finite choice of fixed length
expressions.
|
static int | length(RegExp re)
Returns length if expression has fixed length, -1 otherwise.
|
static boolean | maybeEmtpy(RegExp re)
Checks if the expression potentially matches the empty string.
|
Parameters: rs the reg exps to be checked m the macro table (in expanded form) f the spec file containing the rules