Commit 7fb6b835 authored by Peter's avatar Peter
Browse files

dev

parent 3b5ea67f
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for src/main/java/hk/quantr/verilogcompiler/VerilogHelper.java: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ public class VerilogHelper {
	public static VerilogMacroDefinitionListener scanMacroDefinitions(File preferFile, File folder) throws FileNotFoundException, IOException {
		logger.info(" --- scanMacroDefinitions " + preferFile + ", " + folder.getAbsolutePath());
		// scan all verilog for macro definitions
		logger.info(" --- listing folder " + folder.getAbsolutePath());
		Collection<File> temp = FileUtils.listFiles(folder, new String[]{"v"}, true);
		ArrayList<File> files = new ArrayList<>();
		files.addAll(temp);
@@ -81,6 +82,7 @@ public class VerilogHelper {
	}

	public static String getContentReplacedWithMacro(int parseNo, File file, String content, VerilogMacroDefinitionListener verilogPreListener, ParseStructure ps) throws FileNotFoundException, IOException {
		System.out.println("file=" + file.getAbsolutePath() + ", parseNo=" + parseNo);
		String lines[] = content.split("\r?\n");
		if (ps.macroListing.isEmpty()) {
			for (int x = 0; x < lines.length; x++) {
@@ -242,7 +244,6 @@ public class VerilogHelper {
//		}
//		return null;
//	}

	public static hk.quantr.verilogcompiler.structure.Module fileToModule(File file) throws IOException {
		String content = IOUtils.toString(new FileInputStream(file), "utf-8");
		ParseStructure ps = new ParseStructure();