net.ivoah.slippy

Members list

Type members

Classlikes

case class Constant[T <: Value](value: T) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class DictExpr(elements: Expr*) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
sealed trait Expr

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Constant[T]
class DictExpr
class FnDef
class Identifier
class If
class Keyword
class LetBlock
class ListExpr
class ObjAccess
class VectorExpr
Show all
case class FnDef(parameters: VectorExpr, body: Expr) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class Identifier(name: String) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class If(condition: Expr, trueCase: Expr, falseCase: Expr) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class Keyword(name: String) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class LetBlock(bindings: VectorExpr, body: Expr) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class ListExpr(elements: Expr*) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class ObjAccess(obj: Identifier, field: Identifier) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
case class VarArgs(fn: (Seq[Value]) => Value)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class VectorExpr(elements: Expr*) extends Expr

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Expr
class Object
trait Matchable
class Any
Show all
final class main

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

type Environment = Map[String, Value]
type LispObj = Map[String, Value]
type Token = String
type Value = Any

Value members

Concrete methods

def atom(value: String): Expr
def eval(code: String)(implicit env: Environment): Value
def f(a: Int, b: Double): Double
inline def inspect(inline x: Any): Any
def inspectCode(x: Expr[Any])(using Quotes): Expr[Any]
def main(): Unit
def parse(tokens: Stack[Token]): Expr
def parse(code: String): Expr
inline def toSlippy(inline value: Any): Int
def toSlippyImpl(value: Expr[Any])(using Quotes): Expr[Int]
def tokenize(chars: String): Seq[Token]

Extensions

Extensions

extension (v: Value)
def cast[T]: T

Implicits

Implicits

implicit val stdlib: Environment