package org.scribble.parser.ast.global; import org.antlr.runtime.tree.CommonTree; import org.scribble.ast.AstFactoryImpl; import org.scribble.ast.global.GContinue; import org.scribble.ast.name.simple.RecVarNode; import org.scribble.parser.ScribParser; import org.scribble.parser.ast.name.AntlrSimpleName; public class AntlrGContinue { public static final int LABEL_CHILD_INDEX = 0; public static GContinue parseGContinue(ScribParser parser, CommonTree ct) { RecVarNode recvar = AntlrSimpleName.toRecVarNode(getRecVarChild(ct)); return AstFactoryImpl.FACTORY.GContinue(ct, recvar); } public static final CommonTree getRecVarChild(CommonTree ct) { return (CommonTree) ct.getChild(LABEL_CHILD_INDEX); } }