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

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

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

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

trait Context {
  def identifier: PartialFunction[Identifier, Value]
  def function: PartialFunction[(Identifier, Seq[Value]), Value]
  def unaryOperation: PartialFunction[(Identifier, Value), Value]
  def binaryOperation: PartialFunction[(Value, Identifier, Value), Value]
  def binaryOperationLeftArgument: PartialFunction[(Value, Identifier), Option[Value]]
  def customOperators: Seq[String]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy