All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hypertino.parser.eval.EvaluatorEngineWithContext.scala Maven / Gradle / Ivy

The newest version!
package com.hypertino.parser.eval

import com.hypertino.binders.value.Value
import com.hypertino.parser.ast.Identifier

class EvaluatorEngineWithContext(val context: Context) extends EvaluatorEngine {
  override def identifier = context.identifier orElse super.identifier
  override def function = context.function orElse super.function
  override def unaryOperation: PartialFunction[(Identifier, Value), Value] = context.unaryOperation orElse super.unaryOperation
  override def binaryOperation: PartialFunction[(Value, Identifier, Value), Value] = context.binaryOperation orElse super.binaryOperation
  override def customOperators = context.customOperators
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy