Commit fa7b5b79 authored by Alexandru Dura's avatar Alexandru Dura
Browse files

Move the parser files to the 'se.lth.sep' package

parent 67bed261
package se.lth.sep;
public class Category {
private boolean isTerminal;
private String name;
......
package se.lth.sep;
class DottedRule {
final EarleyRule r;
final int dot;
......
package se.lth.sep;
public class EarleyException extends RuntimeException {
public EarleyException(String msg) {
super(msg);
......
package se.lth.sep;
class EarleyItem {
final int start; // 0 means beginning of input
final DottedRule rule;
......
package se.lth.sep;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
......
package se.lth.sep;
class EarleyRule implements Comparable<EarleyRule> {
final int body[];
final int head;
......
package se.lth.sep;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.TreeSet;
......
package se.lth.sep;
public abstract class NodeLabel {
int start, end;
protected NodeLabel(int start, int end) {
......
package se.lth.sep;
import java.util.Arrays;
import java.util.List;
......
package se.lth.sep;
import java.util.HashSet;
public class SPPFNode {
......
package se.lth.sep;
public interface SPPFNodeVisitor {
public void visit(SPPFNode.FamilyNode familyNode);
public void visit(SPPFNode n);
......
package se.lth.sep;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
......
import static org.junit.Assert.*;
import se.lth.sep.*;
import org.junit.Test;
......
import se.lth.sep.*;
class Java14Grammar {
public static Category t_error = new Category("error", /*terminal*/ true);
public static Category t_LBRACE = new Category("LBRACE", /*terminal*/ true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment