private void FillLexicalRule(String inputLine, Iterator<String> it){
		
			LexicalRule temp = new LexicalRule();
			temp.mLexicalState = FindStateId(inputLine.substring(1, inputLine.indexOf(">")));
			temp.mRegEx = inputLine.substring(inputLine.indexOf(">")+1);
			temp.mRegEx = ProcessRegEx(temp.mRegEx);
			
			temp.mDiscardString = false;
			temp.mNewLine = false;
			temp.mGoToState = false;
			temp.mReturn = false;
			
			String line = it.next(); // skips "{"
			
			// name of the lexical token goes first
			line = it.next();
			if (line.charAt(0) == '-') temp.mDiscardString = true;
			else temp.mLexicalTokenName = line;
			
			// the rest of the arguments
			while(!(line = it.next()).equals("}")){
				
				if (line.indexOf("NOVI_REDAK") >= 0) temp.mNewLine = true;
				if (line.indexOf("UDJI_U_STANJE") >= 0){
					temp.mGoToState = true;
					temp.mGoToStateId = FindStateId(line.substring(line.indexOf(" ") + 1, line.length()));
				}
				if (line.indexOf("VRATI_SE") >= 0){
					temp.mReturn = true;
					temp.mReturnAt = Integer.parseInt(line.substring(line.indexOf(" ") + 1, line.length()));
				}
			}
			mLexicalRuleList.add(temp);	
	}