com.zarbosoft.pidgoon.nodes.Reference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pidgoon Show documentation
Show all versions of pidgoon Show documentation
A GLR-like parser generator
The newest version!
package com.zarbosoft.pidgoon.nodes;
import com.zarbosoft.pidgoon.Node;
import com.zarbosoft.pidgoon.internal.Parent;
import com.zarbosoft.pidgoon.Store;
import com.zarbosoft.pidgoon.parse.Parse;
import org.pcollections.PMap;
import java.util.ArrayList;
import java.util.List;
/** Recurse via the grammar rule of this name. */
public class Reference extends Node {
private final Object key;
private Node base = null;
public Reference(final Object key) {
super();
this.key = key;
}
@Override
public void context(
final Parse context,
final Store store,
final Parent parent,
final PMap