package org.spoofax.jsglr2.benchmark;

import java.util.Queue;
import org.spoofax.jsglr2.actions.IAction;
import org.spoofax.jsglr2.actions.IReduce;
import org.spoofax.jsglr2.parseforest.AbstractParseForest;
import org.spoofax.jsglr2.parser.ForShifterElement;
import org.spoofax.jsglr2.parser.IParserObserver;
import org.spoofax.jsglr2.parser.Parse;
import org.spoofax.jsglr2.parser.ParseFailure;
import org.spoofax.jsglr2.parser.ParseSuccess;
import org.spoofax.jsglr2.parsetable.IProduction;
import org.spoofax.jsglr2.stack.AbstractStackNode;
import org.spoofax.jsglr2.stack.StackLink;
import org.spoofax.jsglr2.stack.elkhound.AbstractElkhoundStackNode;

public class BenchmarkParserObserver<StackNode extends AbstractStackNode<ParseForest>, ParseForest extends AbstractParseForest> implements IParserObserver<StackNode, ParseForest> {
	
	public void parseStart(Parse<StackNode, ParseForest> parse) {}
	
	public void parseCharacter(int character, Iterable<StackNode> activeStacks) {}
	
	public void createStackNode(StackNode stack) {}
	
	public void createStackLink(StackLink<StackNode, ParseForest> link) {}
	
	public void resetDeterministicDepth(AbstractElkhoundStackNode<ParseForest> stack) {}
	
	public void rejectStackLink(StackLink<StackNode, ParseForest> link) {}
    
	public void forActorStacks(Queue<StackNode> forActor, Queue<StackNode> forActorDelayed) {}
	
	public void actor(StackNode stack, int currentChar, Iterable<IAction> applicableActions) {}
    
	public void skipRejectedStack(StackNode stack) {}
	
	public void addForShifter(ForShifterElement<StackNode, ParseForest> forShifterElement) {}
	
	public void doReductions(Parse<StackNode, ParseForest> parse, StackNode stack, IReduce reduce) {}
	
	public void doLimitedReductions(Parse<StackNode, ParseForest> parse, StackNode stack, IReduce reduce, StackLink<StackNode, ParseForest> link) {}
	
	public void reducer(IReduce reduce, ParseForest[] parseNodes, StackNode activeStackWithGotoState) {}
    
	public void reducerElkhound(IReduce reduce, ParseForest[] parseNodes) {}
    
	public void directLinkFound(StackLink<StackNode, ParseForest> directLink) {}
	
	public void accept(StackNode acceptingStack) {}
	
	public void createParseNode(ParseForest parseNode, IProduction production) {}
	
	public void createDerivation(int nodeNumber, IProduction production, ParseForest[] parseNodes) {}
	
	public void createCharacterNode(ParseForest characterNode, int character) {}
	
	public void addDerivation(ParseForest parseNode) {}
	
	public void shifter(ParseForest termNode, Queue<ForShifterElement<StackNode, ParseForest>> forShifter) {}
	
	public void remark(String remark) {}
	
	public void success(ParseSuccess<ParseForest> success) {}

	public void failure(ParseFailure<ParseForest> failure) {
		throw new IllegalStateException("Failing parses not allowed during benchmarks");
	}
	
}

@@ -2675,16 +2675,27 @@
 Success%3C
+StackNode, 
 ParseFor
@@ -2697,16 +2697,19 @@
 seForest
+, ?
 %3E succes
@@ -2749,16 +2749,27 @@
 Failure%3C
+StackNode, 
 ParseFor
@@ -2771,16 +2771,19 @@
 seForest
+, ?
 %3E failur

Fix benchmark project