All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.uscexp.grappa.extension.parser.peg.AstZEROORMORETreeNode Maven / Gradle / Ivy

There is a newer version: 0.4.0-Beta
Show newest version
/*
 * Copyright (C) 2014 by haui - all rights reserved
 */
package com.github.uscexp.grappa.extension.parser.peg;

import org.parboiled.Node;

/**
 * Command implementation for the PegParser rule: ZEROORMORE.
 */
public class AstZEROORMORETreeNode extends AstPegBaseTreeNode {

	public static final String ZERO_OR_MORE = "zeroOrMore";
	public static final String START_ZERO_OR_MORE = "#zeroOrMore#";

	public AstZEROORMORETreeNode(Node node, String value) {
		super(node, value);
	}

	@Override
	protected void interpret(Long id)
		throws ReflectiveOperationException {
		super.interpret(id);
		openProcessStore.getStack().push(ZERO_OR_MORE);
		closeProcessStore.getStack().push(START_ZERO_OR_MORE);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy