Translator

object Translator extends Translator
Companion
class
class WordBerrySethi
class BaseBerrySethi
class Object
trait Matchable
class Any

Value members

Inherited methods

def automatonFrom(pat: RegExp, finalTag: Int): NondetWordAutom[_labelT]
Inherited from
WordBerrySethi
protected def collectTransitions(): Unit
Inherited from
WordBerrySethi
override protected def compFirst(r: RegExp): Set[Int]

Computes first(r) where the word regexp r.

Computes first(r) where the word regexp r.

Value Params
r

the regular expression

Returns

the computed set first(r)

Definition Classes
WordBerrySethi -> BaseBerrySethi
Inherited from
WordBerrySethi
protected def compFollow(rs: Seq[RegExp]): Set[Int]

Starts from the right-to-left precondition: pos is final pats are successor patterns of a Sequence node

Starts from the right-to-left precondition: pos is final pats are successor patterns of a Sequence node

Inherited from
BaseBerrySethi
override protected def compFollow1(fol1: Set[Int], r: RegExp): Set[Int]

Returns the first set of an expression, setting the follow set along the way.

Returns the first set of an expression, setting the follow set along the way.

Value Params
r

the regular expression

Returns

the computed set

Definition Classes
WordBerrySethi -> BaseBerrySethi
Inherited from
WordBerrySethi
override protected def compLast(r: RegExp): Set[Int]

Computes last(r) where the word regexp r.

Computes last(r) where the word regexp r.

Value Params
r

the regular expression

Returns

the computed set last(r)

Definition Classes
WordBerrySethi -> BaseBerrySethi
Inherited from
WordBerrySethi
protected def initialize(subexpr: Seq[RegExp]): Unit
Inherited from
WordBerrySethi
protected def initializeAutom(): Unit
Inherited from
WordBerrySethi
protected def makeTransition(src: Int, dest: Int, label: _labelT): Unit
Inherited from
WordBerrySethi
protected def seenLabel(r: RegExp, label: _labelT): Int
Inherited from
WordBerrySethi
protected def seenLabel(r: RegExp, i: Int, label: _labelT): Unit

Called at the leaves of the regexp

Called at the leaves of the regexp

Inherited from
WordBerrySethi
override def traverse(r: RegExp): Unit
Definition Classes
WordBerrySethi -> BaseBerrySethi
Inherited from
WordBerrySethi

Concrete fields

override val lang: ContentModel

Inherited fields

protected var defaultq: Array[List[Int]]
Inherited from
WordBerrySethi
protected var deltaq: Array[HashMap[_labelT, List[Int]]]
Inherited from
WordBerrySethi
final val emptySet: Set[Int]
Inherited from
BaseBerrySethi
protected var finalTag: Int
Inherited from
BaseBerrySethi
protected var finals: Map[Int, Int]
Inherited from
BaseBerrySethi
protected var follow: HashMap[Int, Set[Int]]
Inherited from
BaseBerrySethi
protected var initials: Set[Int]
Inherited from
WordBerrySethi
protected var labelAt: Map[Int, _labelT]
Inherited from
WordBerrySethi
protected var labels: HashSet[_labelT]
Inherited from
WordBerrySethi
protected var pos: Int
Inherited from
BaseBerrySethi