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

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

The newest version!
/*
 * Copyright (C) 2014 - 2016 by haui - all rights reserved
 */
package com.github.uscexp.grappa.extension.parser.peg;

/**
 * Command implementation for the PegParser rule: OR.
 */
public class AstORTreeNode extends AstPegBaseTreeNode {
	public AstORTreeNode(String rule, String value) {
		super(rule, value);
	}

	@Override
	protected void interpretAfterChilds(Long id) throws ReflectiveOperationException {
		super.interpretAfterChilds(id);
		if ((this.openProcessStore.getTierStack().isEmpty()) || (!FIRST_OF.equals(this.openProcessStore.getTierStack().peek()))) {
			this.openProcessStore.getTierStack().push(FIRST_OF);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy