Move bytecode into own crate.

This commit is contained in:
Windel Bouwman 2019-06-30 11:01:40 +02:00
parent 96e49f195d
commit 134e6b2579
4 changed files with 3 additions and 461 deletions

View file

@ -5,10 +5,10 @@
//! https://github.com/python/cpython/blob/master/Python/compile.c
//! https://github.com/micropython/micropython/blob/master/py/compile.c
use crate::bytecode::{self, CallType, CodeObject, Instruction, Varargs};
use crate::error::{CompileError, CompileErrorType};
use crate::symboltable::{make_symbol_table, statements_to_symbol_table, SymbolRole, SymbolScope};
use num_complex::Complex64;
use rustpython_bytecode::bytecode::{self, CallType, CodeObject, Instruction, Varargs};
use rustpython_parser::{ast, parser};
struct Compiler {