Browse Source

chore: fix copyright notices

master
Garrit Franke 3 years ago
parent
commit
4f8498c710
  1. 15
      src/command/run.rs
  2. 4
      src/generator/c.rs
  3. 15
      src/generator/llvm.rs
  4. 15
      src/parser/infer.rs
  5. 2
      src/parser/mod.rs
  6. 4
      src/parser/tests.rs

15
src/command/run.rs

@ -1,3 +1,18 @@
/**
* Copyright 2020 Garrit Franke
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use crate::command::build;
use std::io::Write;
use std::path::PathBuf;

4
src/generator/c.rs

@ -1,5 +1,3 @@
use crate::generator::Generator;
use crate::parser::node_type::*;
/**
* Copyright 2020 Garrit Franke
*
@ -15,6 +13,8 @@ use crate::parser::node_type::*;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use crate::generator::Generator;
use crate::parser::node_type::*;
use crate::util::Either;
pub struct CGenerator;

15
src/generator/llvm.rs

@ -1,3 +1,18 @@
/**
* Copyright 2020 Garrit Franke
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use crate::generator::Generator;
use crate::parser::node_type::*;
use inkwell::context::Context;

15
src/parser/infer.rs

@ -1,3 +1,18 @@
/**
* Copyright 2021 Garrit Franke
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use super::node_type::*;
/// Try to infer types of variables

2
src/parser/mod.rs

@ -1,4 +1,3 @@
mod infer;
/**
* Copyright 2020 Garrit Franke
*
@ -14,6 +13,7 @@ mod infer;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
mod infer;
pub mod node_type;
// TODO: Resolve this lint by renaming the module
#[allow(clippy::module_inception)]

4
src/parser/tests.rs

@ -1,5 +1,3 @@
use crate::lexer::*;
use crate::parser::node_type::*;
/**
* Copyright 2020 Garrit Franke
*
@ -15,6 +13,8 @@ use crate::parser::node_type::*;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
use crate::lexer::*;
use crate::parser::node_type::*;
use crate::parser::parse;
#[test]

Loading…
Cancel
Save