protected static PPJCProduction determineProduction(Node node) {
		// Logger.log("TRAŽIM PRODUKCIJU ZA NEZAVRŠNI: " +
		// node.getSymbol());

		List<Node> children = node.getChildren();

		List<orderedProduction> prods = productions.get(node.getSymbol().toString());

		if (prods == null)
			throw new SemanticsException("NEMA PRODUKCIJE HURR", node);

		for (orderedProduction o : prods) {
			boolean matchFound = true;
			if (o.production.length != children.size())
				continue;
			for (int i = 0; i < children.size(); i++) {
				if (!o.production[i].equals(children.get(i).getSymbol().toString())) {
					matchFound = false;
					break;
				}
			}
			if (matchFound) {
				// Logger.log("NAŠO PRODUKCIJU:" +
				// productionEnum[o.index]);
				return productionEnum[o.index];
			}
		}
		throw new SemanticsException("OPET NEMA PRODUKCIJE JEBIGA", node);
	}