RuleLike

com.phasmidsoftware.lascala.parser.RuleLike
sealed trait RuleLike

Sealed trait RuleLike which describes the result of parsing a rule. In this context, a rule is defined by several different case classes, each defining a different method of combining rules together into a tree of rules. In general, a leaf rule is a Condition and is made up of two features: a subject and a predicate.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Condition
class Conjunction
class Disjunction
class Parentheses
class TruthValue

Members list

Value members

Abstract methods

def asRule: Rule[String]

Method to convert this (parsed) RuleLike instance into a Rule[String]

Method to convert this (parsed) RuleLike instance into a Rule[String]

Attributes

Returns

a Rule[String] that corresponds to this (parsed) RuleLike