Skip to content

Commit bc6d040

Browse files
authored
License enhancement (#284)
Signed-off-by: LunaStev <luna@lunastev.org>
1 parent 14c4c11 commit bc6d040

119 files changed

Lines changed: 1323 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

COPYRIGHT

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Wave Language Project - Copyright Information
2+
=============================================
3+
4+
The Wave language project is developed and maintained by the Wave Foundation.
5+
6+
Primary Author:
7+
- LunaStev
8+
9+
Contributors:
10+
- See the GitHub contributors list for a full list of contributors.
11+
12+
Copyright ownership of individual source files
13+
is indicated in the file headers.
14+
15+
Unless otherwise noted, all contributions to this project
16+
are licensed under the Mozilla Public License v2.0 (MPL-2.0).

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# This file is part of the Wave language project.
2+
# Copyright (c) 2024–2026 Wave Foundation
3+
# Copyright (c) 2024–2026 LunaStev and contributors
4+
#
5+
# This Source Code Form is subject to the terms of the
6+
# Mozilla Public License, v. 2.0.
7+
# If a copy of the MPL was not distributed with this file,
8+
# You can obtain one at https://mozilla.org/MPL/2.0/.
9+
#
10+
# SPDX-License-Identifier: MPL-2.0
11+
112
FROM ubuntu:22.04
213

314
RUN apt-get update && apt-get install -y \

NOTICE

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Wave Language Project
2+
=====================
3+
4+
Wave is the reference implementation of the Wave programming language,
5+
maintained by the Wave Foundation.
6+
7+
Copyright (c) 2024–2026 Wave Foundation
8+
Copyright (c) 2024–2026 LunaStev and contributors
9+
10+
This project is licensed under the Mozilla Public License v2.0 (MPL-2.0).
11+
12+
Re-implementations of the Wave language specification are permitted.
13+
However, reuse of Wave source files must comply with the terms of the MPL-2.0.
14+
15+
The names "Wave", "Wave Language", "Wave Compiler", and related project names
16+
may be considered trademarks of the Wave Foundation.

front/lexer/src/lexer/core.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use crate::token::TokenType;
213

314
#[derive(Debug, Clone)]

front/lexer/src/lexer/cursor.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use super::{Lexer};
213

314
impl<'a> Lexer<'a> {

front/lexer/src/lexer/ident.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use crate::token::*;
213
use super::{Lexer, Token};
314

front/lexer/src/lexer/literals.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use super::Lexer;
213

314
impl<'a> Lexer<'a> {

front/lexer/src/lexer/mod.rs

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
#![allow(
2-
dead_code,
3-
unused_variables,
4-
clippy::module_inception,
5-
clippy::type_complexity,
6-
clippy::unnecessary_map_or,
7-
clippy::question_mark,
8-
clippy::result_large_err,
9-
clippy::ptr_arg,
10-
clippy::while_let_on_iterator,
11-
clippy::needless_borrow,
12-
clippy::useless_format,
13-
clippy::manual_strip,
14-
clippy::explicit_auto_deref,
15-
clippy::collapsible_if,
16-
clippy::collapsible_else_if,
17-
clippy::new_without_default
18-
)]
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
1911

2012
mod core;
2113
mod cursor;

front/lexer/src/lexer/scan.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use crate::token::*;
213
use super::{Lexer, Token};
314

@@ -328,7 +339,7 @@ impl<'a> Lexer<'a> {
328339
bin_str.push(self.advance());
329340
}
330341

331-
let value = i64::from_str_radix(&bin_str, 2).unwrap_or(0);
342+
let _value = i64::from_str_radix(&bin_str, 2).unwrap_or(0);
332343

333344
return Token {
334345
token_type: TokenType::IntLiteral(format!("0b{}", bin_str)),
@@ -345,7 +356,7 @@ impl<'a> Lexer<'a> {
345356
hex_str.push(self.advance());
346357
}
347358

348-
let value = i64::from_str_radix(&hex_str, 16).unwrap_or(0);
359+
let _value = i64::from_str_radix(&hex_str, 16).unwrap_or(0);
349360

350361
return Token {
351362
token_type: TokenType::IntLiteral(format!("0x{}", hex_str)),

front/lexer/src/lexer/trivia.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// This file is part of the Wave language project.
2+
// Copyright (c) 2024–2026 Wave Foundation
3+
// Copyright (c) 2024–2026 LunaStev and contributors
4+
//
5+
// This Source Code Form is subject to the terms of the
6+
// Mozilla Public License, v. 2.0.
7+
// If a copy of the MPL was not distributed with this file,
8+
// You can obtain one at https://mozilla.org/MPL/2.0/.
9+
//
10+
// SPDX-License-Identifier: MPL-2.0
11+
112
use super::Lexer;
213

314
impl<'a> Lexer<'a> {

0 commit comments

Comments
 (0)