public abstract class Nonterminal extends Object
Constructor and Description |
---|
Nonterminal() |
Modifier and Type | Method and Description |
---|---|
abstract AutomatonState |
build(AutomatonState in)
Recursively builds a new graph of automaton states (an NFA) based on the model provided by
this Nonterminal.
|
Nonterminal |
chain(Object... objects) |
static Nonterminal |
choice(Object... objs) |
Nonterminal |
optional() |
static Nonterminal |
optional(Object... objs) |
Nonterminal |
or(Object that) |
Nonterminal |
plus() |
static Nonterminal |
plus(Object... objs) |
static Nonterminal |
seq(Object... objs) |
Nonterminal |
star() |
static Nonterminal |
star(Object... objs) |
DFA |
toDFA() |
NFA |
toNFA() |
public abstract AutomatonState build(AutomatonState in)
entry
- - the start state for the automaton to buildpublic Nonterminal star()
public Nonterminal plus()
public Nonterminal optional()
public Nonterminal or(Object that)
public Nonterminal chain(Object... objects)
public static Nonterminal seq(Object... objs)
public static Nonterminal star(Object... objs)
public static Nonterminal plus(Object... objs)
public static Nonterminal optional(Object... objs)
public static Nonterminal choice(Object... objs)
public NFA toNFA()
public DFA toDFA()
Copyright © 2015. All rights reserved.