private String checkSymbols(SymbolScope scope) {
		entry("checkSymbols", scope);
		List<String> symbolErrors = new ArrayList<>();
		IteratorSTL<SleighSymbol> iter;
		for (iter = scope.begin(); !iter.equals(scope.end()); iter.increment()) {
			SleighSymbol sym = iter.get();
			if (sym.getType() != symbol_type.label_symbol) {
				continue;
			}
			LabelSymbol labsym = (LabelSymbol) sym;
			if (labsym.getRefCount() == 0) {
				symbolErrors.add(MessageFormattingUtils.format(labsym.location,
					String.format("Label <%s> was placed but never used", sym.getName())));
			}
			else if (!labsym.isPlaced()) {
				symbolErrors.add(MessageFormattingUtils.format(labsym.location,
					String.format("Label <%s> was referenced but never placed", sym.getName())));
			}
		}
		return symbolErrors.stream().collect(Collectors.joining("  "));
	}
<code>SleighCompile</code> provides the ability to compile Sleigh language module (e.g., *.slaspec)
files.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java