@ -1,3 +1,4 @@
use crate::ast::*;
/**
* Copyright 2020 Garrit Franke
*
@ -14,7 +15,6 @@
* limitations under the License.
*/
use crate::generator::Generator;
use crate::util::Either;
pub struct CGenerator;
use std::collections::HashMap;
pub struct JsGenerator;
use inkwell::context::Context;
use inkwell::module;
use inkwell::types::*;
@ -1,5 +1,5 @@
use crate::generator::c::generate_type;
use crate::ast::Type;
#[test]
use crate::ast::{Function, Module, Statement};
struct Assembly {
asm: Vec<String>,
use crate::lexer::Keyword;
@ -17,7 +18,6 @@ use crate::lexer::Keyword;
use crate::lexer::Position;
use crate::lexer::{Token, TokenKind};
use crate::parser::infer::infer;
use crate::util::string_util::highlight_position_in_file;
use std::convert::TryFrom;
use std::iter::Peekable;
use crate::lexer::*;
use crate::parser::parse;