Trait cl_interpret::interpret::Interpret

source ·
pub trait Interpret {
    // Required method
    fn interpret(&self, env: &mut Environment) -> IResult<ConValue>;
}
Expand description

A work-in-progress tree walk interpreter for Conlang

Required Methods§

source

fn interpret(&self, env: &mut Environment) -> IResult<ConValue>

Interprets this thing in the given Environment.

Everything returns a value!™

Implementations on Foreign Types§

source§

impl Interpret for ExprKind

source§

impl Interpret for Literal

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for AddrOf

source§

impl Interpret for Alias

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Array

source§

impl Interpret for ArrayRep

source§

impl Interpret for Assign

source§

impl Interpret for Binary

source§

impl Interpret for Block

source§

impl Interpret for Break

source§

impl Interpret for Const

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Continue

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Else

source§

impl Interpret for Enum

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Expr

source§

impl Interpret for File

source§

impl Interpret for For

source§

impl Interpret for Function

source§

impl Interpret for Group

source§

impl Interpret for If

source§

impl Interpret for Impl

source§

impl Interpret for Index

source§

impl Interpret for Item

source§

impl Interpret for Let

source§

impl Interpret for Loop

source§

impl Interpret for Member

source§

impl Interpret for Modify

source§

impl Interpret for Module

source§

impl Interpret for Path

source§

impl Interpret for Return

source§

impl Interpret for Static

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Stmt

source§

impl Interpret for Struct

source§

fn interpret(&self, _env: &mut Environment) -> IResult<ConValue>

source§

impl Interpret for Structor

source§

impl Interpret for Tuple

source§

impl Interpret for Unary

source§

impl Interpret for While

Implementors§