All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----oplan.util.match.SimpleMatcher
Only the pattern can contain variables.
private static final MatchEnv emptyEnv
public static final Symbol REST
public SimpleMatcher()
public static MatchEnv match(Object pat, Object dat)
Only the pattern can contain variables. If a variable appears more than once in a pattern, there's no attempt to check that it matches the same thing each time.
For now, numbers are compared as objects, not by comparing their numeric values.
public static MatchEnv match(Object pat, Object dat, MatchEnv env)
private static final MatchEnv matchRest(Object pat, Object dat, MatchEnv env)
private static final MatchEnv when(boolean cond, MatchEnv env)
private static final MatchEnv success(MatchEnv env)
All Packages Class Hierarchy This Package Previous Next Index