@@ -0,0 +1,733 @@
+package org.spoofax.jsglr2;%0A%0Aimport org.metaborg.parsetable.IParseTable;%0Aimport org.spoofax.interpreter.terms.IStrategoTerm;%0Aimport org.spoofax.jsglr2.parser.observing.LogParserObserver;%0A%0Apublic class JSGLR2Spec %7B%0A%0A    public final JSGLR2Variant.Preset variant;%0A    public final JSGLR2Logging logging;%0A%0A    public JSGLR2Spec(JSGLR2Variant.Preset variant, JSGLR2Logging logging) %7B%0A        this.variant = variant;%0A        this.logging = logging;%0A    %7D%0A%0A    public JSGLR2%3CIStrategoTerm%3E getJSGLR2(IParseTable parseTable) %7B%0A        JSGLR2%3CIStrategoTerm%3E jsglr2 = variant.getJSGLR2(parseTable);%0A%0A        if(logging != JSGLR2Logging.None)%0A            jsglr2.attachObserver(new LogParserObserver(logging));%0A%0A        return jsglr2;%0A    %7D%0A%0A%7D%0A

Introduce JSGLR2Spec, a helper class for specifying and getting JSGLR2 instances including logging