@Override
	public Collection<AssemblyParseNumericToken> match(String buffer, int pos,
			AssemblyGrammar grammar, AssemblyNumericSymbols symbols) {
		Collection<AssemblyParseNumericToken> result = new LinkedHashSet<>();
		for (Entry<String, Integer> ent : map.entries()) {
			String str = ent.getKey();
			if (buffer.regionMatches(pos, str, 0, str.length())) {
				result.add(new AssemblyParseNumericToken(grammar, this, str, ent.getValue()));
			}
		}
		return result;
	}
Construct a terminal with the given name, accepting only the keys of a given map

@param name the name
@param map the map from display text to token value
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/symbol/AssemblyStringMapTerminal.java