Browse Source

chore: fix formatting

master
Garrit Franke 2 years ago
parent
commit
d3d6af3b00
  1. 2
      src/generator/c.rs
  2. 2
      src/generator/js.rs
  3. 2
      src/generator/llvm.rs
  4. 2
      src/generator/tests/c_tests.rs
  5. 2
      src/generator/x86.rs
  6. 2
      src/parser/parser.rs
  7. 2
      src/parser/tests.rs

2
src/generator/c.rs

@ -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::ast::*;
use crate::util::Either;
pub struct CGenerator;

2
src/generator/js.rs

@ -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::ast::*;
use std::collections::HashMap;
pub struct JsGenerator;

2
src/generator/llvm.rs

@ -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::ast::*;
use inkwell::context::Context;
use inkwell::module;
use inkwell::types::*;

2
src/generator/tests/c_tests.rs

@ -1,5 +1,5 @@
use crate::generator::c::generate_type;
use crate::ast::Type;
use crate::generator::c::generate_type;
use crate::util::Either;
#[test]

2
src/generator/x86.rs

@ -1,3 +1,4 @@
use crate::ast::{Function, Module, Statement};
/**
* Copyright 2020 Garrit Franke
*
@ -14,7 +15,6 @@
* limitations under the License.
*/
use crate::generator::Generator;
use crate::ast::{Function, Module, Statement};
struct Assembly {
asm: Vec<String>,

2
src/parser/parser.rs

@ -1,3 +1,4 @@
use crate::ast::*;
use crate::lexer::Keyword;
/**
* Copyright 2020 Garrit Franke
@ -17,7 +18,6 @@ use crate::lexer::Keyword;
use crate::lexer::Position;
use crate::lexer::{Token, TokenKind};
use crate::parser::infer::infer;
use crate::ast::*;
use crate::util::string_util::highlight_position_in_file;
use std::convert::TryFrom;
use std::iter::Peekable;

2
src/parser/tests.rs

@ -1,3 +1,4 @@
use crate::ast::*;
/**
* Copyright 2020 Garrit Franke
*
@ -14,7 +15,6 @@
* limitations under the License.
*/
use crate::lexer::*;
use crate::ast::*;
use crate::parser::parse;
#[test]

Loading…
Cancel
Save