@Override
	public List<String> splitCodeLine(String line) {
		Scanner sc;
		Pattern delimiterPattern = Pattern.compile("[\\,]?[\\s]+"); //splits a String on one or more white spaces, or a comma
		//followed by a whitespace -> this separates each line of assembly code into bits for processing into instructions.
		
		List<String> splitLine = new ArrayList<String>(); //Array to hold one line of code, split up into parts

		if (line.contains("#")) { //If the line of code contains a comment, remove the comment part
			String[] halvedLine = line.split("[\\#]"); //Split the line on the comment delimiter
			line = halvedLine[0]; 
		}
		
		sc = new Scanner(line);
		sc.useDelimiter(delimiterPattern);
		while (sc.hasNext()) { //Add each part of an instruction/declaration to splitLine
			splitLine.add(sc.next());
		}
		sc.close();			

		return splitLine;		
	}