private void addParseAction(Element currentCell,int sym,byte type,int parameter)
	{
		if(type == LRParseTable.ACCEPT && sym == spec.getEOFTerminal())
		{
			currentCell.appendChild(document.createElement("accept"));
		}
		else if(type == LRParseTable.GOTO && spec.nonterminals.get(sym))
		{
			Element gotoElement = (Element) currentCell.appendChild(document.createElement("goto"));
			gotoElement.setAttribute("dest","tr" + parameter);			
		}
		else if(type == LRParseTable.SHIFT)
		{
			Element shiftElement = (Element) currentCell.appendChild(document.createElement("shift"));
			shiftElement.setAttribute("dest","tr" + parameter);
		}
		else /*if(type == LRParseTable.REDUCE) */
		{
			Element reduceElement = (Element) currentCell.appendChild(document.createElement("reduce"));
			reduceElement.setAttribute("prod",generateTag(parameter));
		}		
	}