// Path: src/main/java/txr/parser/Ident.java
// public class Ident extends Node {
// 
// 	public final String id;
// 	
// 	private boolean longMatch;
// 
// 	/**
// 	 * non-null only if a regular expression was specified
// 	 * for a bident
// 	 */
// 	public RegularExpression regex = null;
// 	
// 	public Ident(String id) {
// 		this.id = id;
// 	}
// 
// 	@Override
// 	public boolean isNegativeMatcher() {
// 		return regex == null;
// 	}
// 
// 	public void setLongMatch(boolean longMatch) {
// 		this.longMatch = longMatch;
// 	}
// 
// 	public void setRegex(RegularExpression regex) {
// 		this.regex = regex;
// 	}
// 
// 	public String toString() {
// 		if (longMatch) {
// 			return "Ident (long match): " + id;
// 		} else {
// 			return "Ident: " + id;
// 		}
// 	}
// }


import txr.parser.Ident;
package txr.matchers;


/**
 * This class wraps a bound variable and all the following positive matchers
 * to make a composite matcher that is a positive matcher.  Note that all
 * HorizontalMatcher implementations are positive matchers with no backtracking.
 * 
 * @author Nigel
 *
 */
public class VariableMatcher extends HorizontalMatcher {

	private Ident variableNode;
	
	private HorizontalMatcher followingMatcher;

// Path: src/main/java/txr/parser/Ident.java
// public class Ident extends Node {
// 
// 	public final String id;
// 	
// 	private boolean longMatch;
// 
// 	/**
// 	 * non-null only if a regular expression was specified
// 	 * for a bident
// 	 */
// 	public RegularExpression regex = null;
// 	
// 	public Ident(String id) {
// 		this.id = id;
// 	}
// 
// 	@Override
// 	public boolean isNegativeMatcher() {
// 		return regex == null;
// 	}
// 
// 	public void setLongMatch(boolean longMatch) {
// 		this.longMatch = longMatch;
// 	}
// 
// 	public void setRegex(RegularExpression regex) {
// 		this.regex = regex;
// 	}
// 
// 	public String toString() {
// 		if (longMatch) {
// 			return "Ident (long match): " + id;
// 		} else {
// 			return "Ident: " + id;
// 		}
// 	}
// }


// Path: src/main/java/txr/matchers/VariableMatcher.java
import txr.parser.Ident;

package txr.matchers;


/**
 * This class wraps a bound variable and all the following positive matchers
 * to make a composite matcher that is a positive matcher.  Note that all
 * HorizontalMatcher implementations are positive matchers with no backtracking.
 * 
 * @author Nigel
 *
 */
public class VariableMatcher extends HorizontalMatcher {

	private Ident variableNode;
	
	private HorizontalMatcher followingMatcher;

	public VariableMatcher(Ident variableNode, HorizontalMatcher followingMatcher) {