private void buildPatterns() {
		entry("buildPatterns");
		if (root == null) {
			reportError(null, "No patterns to match--could not find any constructors");
			return;
		}
		root.buildPattern(System.err); // This should recursively hit
		// everything
		if (root.isError()) {
			errors += 1;
		}
		for (int i = 0; i < tables.size(); ++i) {
			if (tables.get(i).isError()) {
				reportError(tables.get(i).getLocation(),
					"Problem in table: '" + tables.get(i).getName());
				errors += 1;
			}
			if (tables.get(i).getPattern() == null) {
				reportWarning(tables.get(i).getLocation(),
					"Unreferenced table: '" + tables.get(i).getName() + "'");
			}
		}
	}
<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