chore(treewide): Reapply the license header
This commit is contained in:
parent
4fc61b2398
commit
3b5c35c0c4
20
.envrc
20
.envrc
|
@ -1,3 +1,23 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use flake || use nix
|
||||
watch_file flake.nix
|
||||
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# build
|
||||
/target
|
||||
/result
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
---
|
||||
# Regexes which if matched by a file path will always be excluded from
|
||||
# getting a license header
|
||||
|
|
20
Cargo.toml
20
Cargo.toml
|
@ -1,3 +1,23 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
[package]
|
||||
name = "trinitry"
|
||||
description = "A very simple programming language, used to map functions to commands"
|
||||
|
|
22
README.md
22
README.md
|
@ -1,3 +1,25 @@
|
|||
<!--
|
||||
Copyright (C) 2024 - 2024:
|
||||
The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
This file is part of the Trinitry crate for Trinitrix.
|
||||
|
||||
Trinitry is free software: you can redistribute it and/or modify
|
||||
it under the terms of the Lesser GNU General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
and the Lesser GNU General Public License along with this program.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
# Trinitry
|
||||
|
||||
> A very simple programming language, used to map functions to commands
|
||||
|
|
20
cog.toml
20
cog.toml
|
@ -1,3 +1,23 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
tag_prefix = "v"
|
||||
branch_whitelist = ["main", "prime"]
|
||||
ignore_merge_commits = false
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<!--
|
||||
Copyright (C) 2023 The Trinitrix Project <soispha@vhack.eu, antifallobst@systemausfall.org>
|
||||
Copyright (C) 2024 - 2024:
|
||||
The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
This file is part of the Trinitry crate for Trinitrix.
|
||||
|
||||
|
@ -18,7 +20,6 @@ and the Lesser GNU General Public License along with this program.
|
|||
If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
|
||||
<!doctype html>
|
||||
<!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
|
||||
<html>
|
||||
|
|
21
flake.nix
21
flake.nix
|
@ -1,3 +1,22 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
{
|
||||
description = "A very simple programming language, used to map functions to commands";
|
||||
|
||||
|
@ -88,6 +107,8 @@
|
|||
packages = with pkgs; [
|
||||
cocogitto
|
||||
|
||||
yq
|
||||
|
||||
rust_default
|
||||
cargo-edit
|
||||
|
||||
|
|
|
@ -1,4 +1,23 @@
|
|||
#! /usr/bin/env sh
|
||||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# NOTE: This is the line length of the .licensure.yml header template **plus** the extra
|
||||
# line after the template comment.
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#! /usr/bin/env sh
|
||||
# Copyright (C) 2023 The Trinitrix Project <soispha@vhack.eu, antifallobst@systemausfall.org>
|
||||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
|
@ -17,7 +19,6 @@
|
|||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
# This script generates ./src/tests.rs
|
||||
|
||||
# Library {{{
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/*
|
||||
* Copyright (C) 2023 The Trinitrix Project <soispha@vhack.eu, antifallobst@systemausfall.org>
|
||||
* Copyright (C) 2024 - 2024:
|
||||
* The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
* SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
*
|
||||
* This file is part of the Trinitry crate for Trinitrix.
|
||||
*
|
||||
|
@ -18,7 +20,6 @@
|
|||
* If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
//! This crate is a parser for the 'Trinitry' (not 'Trinity') language, used to map all sort of
|
||||
//! Functions to a memorable command.
|
||||
//!
|
||||
|
|
44
src/tests.rs
44
src/tests.rs
|
@ -1,3 +1,25 @@
|
|||
/*
|
||||
* Copyright (C) 2024 - 2024:
|
||||
* The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
* SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
*
|
||||
* This file is part of the Trinitry crate for Trinitrix.
|
||||
*
|
||||
* Trinitry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the Lesser GNU General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* and the Lesser GNU General Public License along with this program.
|
||||
* If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// DO NOT EDIT
|
||||
// This file is automatically generated by the 'update.sh' file, with data from:
|
||||
// https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt
|
||||
|
@ -345,7 +367,10 @@ mod test {
|
|||
let p = Trinitry::new(r##"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"##).unwrap_or_else(|e| {
|
||||
panic!("{}", e);
|
||||
});
|
||||
assert_eq!(r##"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"##, &p.to_string());
|
||||
assert_eq!(
|
||||
r##"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"##,
|
||||
&p.to_string()
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn parse_56() {
|
||||
|
@ -433,7 +458,10 @@ mod test {
|
|||
let p = Trinitry::new(r##"123456789012345678901234567890123456789"##).unwrap_or_else(|e| {
|
||||
panic!("{}", e);
|
||||
});
|
||||
assert_eq!(r##"123456789012345678901234567890123456789"##, &p.to_string());
|
||||
assert_eq!(
|
||||
r##"123456789012345678901234567890123456789"##,
|
||||
&p.to_string()
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn parse_70() {
|
||||
|
@ -1029,17 +1057,23 @@ mod test {
|
|||
}
|
||||
#[test]
|
||||
fn parse_184() {
|
||||
let p = Trinitry::new(r##"<IMG SRC=javascript:alert('211')>"##);
|
||||
let p = Trinitry::new(
|
||||
r##"<IMG SRC=javascript:alert('211')>"##,
|
||||
);
|
||||
assert!(p.is_err());
|
||||
}
|
||||
#[test]
|
||||
fn parse_185() {
|
||||
let p = Trinitry::new(r##"<IMG SRC=javascript:alert('212')>"##);
|
||||
let p = Trinitry::new(
|
||||
r##"<IMG SRC=javascript:alert('212')>"##,
|
||||
);
|
||||
assert!(p.is_err());
|
||||
}
|
||||
#[test]
|
||||
fn parse_186() {
|
||||
let p = Trinitry::new(r##"<IMG SRC=javascript:alert('213')>"##);
|
||||
let p = Trinitry::new(
|
||||
r##"<IMG SRC=javascript:alert('213')>"##,
|
||||
);
|
||||
assert!(p.is_err());
|
||||
}
|
||||
#[test]
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// Copyright (C) 2023 The Trinitrix Project <soispha@vhack.eu, antifallobst@systemausfall.org>
|
||||
// Copyright (C) 2024 - 2024:
|
||||
// The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
//
|
||||
// This file is part of the Trinitry crate for Trinitrix.
|
||||
//
|
||||
|
@ -16,7 +18,6 @@
|
|||
// and the Lesser GNU General Public License along with this program.
|
||||
// If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
chars = { ASCII_ALPHANUMERIC | "_" | "-" | "." }
|
||||
|
||||
// TODO(@soispha): Are these all the valid characters? <2023-11-01>
|
||||
|
|
19
treefmt.nix
19
treefmt.nix
|
@ -1,3 +1,22 @@
|
|||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
{
|
||||
treefmt-nix,
|
||||
pkgs,
|
||||
|
|
19
update.sh
19
update.sh
|
@ -1,4 +1,23 @@
|
|||
#! /usr/bin/env sh
|
||||
# Copyright (C) 2024 - 2024:
|
||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
#
|
||||
# This file is part of the Trinitry crate for Trinitrix.
|
||||
#
|
||||
# Trinitry is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the Lesser GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# and the Lesser GNU General Public License along with this program.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
nix flake update
|
||||
cargo update
|
||||
|
|
Loading…
Reference in New Issue