Interpreter

com.netflix.atlas.core.stacklang.Interpreter
See theInterpreter companion object
case class Interpreter(vocabulary: List[Word])

Interpreter for stack expressions.

Value parameters

vocabulary

Set of supported words. If multiple words have the same name, then the first one that matches with the current stack will get used.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final def candidates(stack: List[Any]): List[Word]

Return a list of all words in the vocabulary for this interpreter that match the provided stack.

Return a list of all words in the vocabulary for this interpreter that match the provided stack.

Attributes

final def candidates(name: String, stack: List[Any]): List[Word]

Return a list of overloaded variants that match. The first word in the list is what would get used when executing.

Return a list of overloaded variants that match. The first word in the list is what would get used when executing.

Attributes

final def debug(program: List[Any], context: Context): List[Step]
final def debug(program: List[Any]): List[Step]
final def debug(program: String): List[Step]
final def execute(program: String, vars: Map[String, Any], features: Features): Context
final def executeProgram(program: List[Any], context: Context, unfreeze: Boolean): Context
final def executeProgram(program: List[Any]): Context
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product