diff --git a/src/command/run.rs b/src/command/run.rs index 757a2cd..81b1e27 100644 --- a/src/command/run.rs +++ b/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; diff --git a/src/generator/c.rs b/src/generator/c.rs index 02da8ea..ff799f2 100644 --- a/src/generator/c.rs +++ b/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; diff --git a/src/generator/llvm.rs b/src/generator/llvm.rs index 210e6a0..8083225 100644 --- a/src/generator/llvm.rs +++ b/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; diff --git a/src/parser/infer.rs b/src/parser/infer.rs index 819e167..294709c 100644 --- a/src/parser/infer.rs +++ b/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 diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 58fb36d..6e70a39 100644 --- a/src/parser/mod.rs +++ b/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)] diff --git a/src/parser/tests.rs b/src/parser/tests.rs index 30fb9e7..614639c 100644 --- a/src/parser/tests.rs +++ b/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]