@Override
	public Collection<AssemblyParseNumericToken> match(String buffer, int pos,
			AssemblyGrammar grammar, AssemblyNumericSymbols symbols) {
		// TODO: Allow label substitution here? For now, no.
		Collection<AssemblyParseNumericToken> toks =
			new HashSet<>(super.match(buffer, pos, grammar, AssemblyNumericSymbols.EMPTY));
		Iterator<AssemblyParseNumericToken> tokit = toks.iterator();
		while (tokit.hasNext()) {
			AssemblyParseNumericToken tok = tokit.next();
			if (tok.getNumericValue() != val) {
				tokit.remove();
			}
		}
		return toks;
	}
Construct a terminal that accepts only the given numeric value

@param val the value to accept
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/symbol/AssemblyFixedNumericTerminal.java