HW07-JRollinson/Parser.java
private void parseComp()
	{
		String line = getCleanLine();
		
		if(this.commandType == C_COMMAND)
		{
			if(line.contains("="))
			{
				this.compMnemonic = line.substring((line.indexOf('=')) + 1);
			}
			else if(line.contains(";"))
			{
				this.compMnemonic = line.substring(0, line.indexOf(';'));
			}
		}
	}
// POST-CONDITION:	compMnemonic set to appropriate value from instruction

POST-CONDITION:        compMnemonic set to appropriate value from instruction
POST - CONDITION : compMnemonic set to appropriate value from instruction
private void parseComp()
	{
		String line = getCleanLine();
		if(this.commandType == C_COMMAND)
		{
			if(line.contains("="))
			{
				this.compMnemonic = line.substring((line.indexOf('=')) + 1);
			}
			else if(line.contains(";"))
			{
				this.compMnemonic = line.substring(0, line.indexOf(';'));
			}
		}
	}
private void parseComp ( ) { String line = getCleanLine ( ) ; if ( this . commandType == C_COMMAND ) { if ( line . contains ( "=" ) ) { this . compMnemonic = line . substring ( ( line . indexOf ( '=' ) ) + 1 ) ; } else if ( line . contains ( ";" ) ) { this . compMnemonic = line . substring ( 0 , line . indexOf ( ';' ) ) ; } } }
POST-CONDITION:        compMnemonic set to appropriate value from instruction
POST - CONDITION : compMnemonic set to appropriate value from instruction