cas-compiler 0.2.0

Bytecode compiler for CalcScript programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use cas_error::Error;
use cas_parser::parser::ast::branch::{Of, Then};
use crate::{Compile, Compiler};

impl Compile for Then {
    fn compile(&self, compiler: &mut Compiler) -> Result<(), Error> {
        self.expr.compile(compiler)
    }
}

impl Compile for Of {
    fn compile(&self, compiler: &mut Compiler) -> Result<(), Error> {
        self.expr.compile(compiler)
    }
}