JFlex

Class SemCheck


public final class SemCheck
extends java.lang.Object

Performs simple semantic analysis on regular expressions. (used for checking if trailing contexts are legal)

Method Summary

static void
check(RegExps rs, Macros m, char max, File f)
Performs semantic analysis for all expressions.

Method Details

check

public static void check(RegExps rs,
                         Macros m,
                         char max,
                         File f)
Performs semantic analysis for all expressions. Currently: illegal lookahead check only [fixme: more checks possible]
Parameters:
rs - the reg exps to be checked
m - the macro table (in expanded form)
max - max character of the used charset (for negation)
f - the spec file containing the rules [fixme]