com.github.uscexp.grappa.extension.parser.peg.AstLOOKAHEADTreeNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grappa.extension Show documentation
Show all versions of grappa.extension Show documentation
Extension for parboiled/grappa parser.
/*
* 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: LOOKAHEAD.
*/
public class AstLOOKAHEADTreeNode extends AstPegBaseTreeNode {
public AstLOOKAHEADTreeNode(Node> node, String value) {
super(node, value);
}
@Override
protected void interpret(Long id)
throws ReflectiveOperationException {
super.interpret(id);
String param = (String) closeProcessStore.getStack().pop();
closeProcessStore.getStack().push("test(" + param + ")");
}
}