diff --git a/Cargo.lock b/Cargo.lock index 467ba85..b2311df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -181,7 +181,7 @@ dependencies = [ [[package]] name = "trinitry" -version = "0.1.0" +version = "0.2.0" dependencies = [ "pest", "pest_derive", diff --git a/Cargo.toml b/Cargo.toml index 134f094..3fd7ded 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ [package] name = "trinitry" description = "A very simple programming language, used to map functions to commands" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "LGPL-3.0-or-later" repository = "https://git.nerdcult.net/trinitrix/trinitry" diff --git a/NEWS.md b/NEWS.md index 6bd0101..e55a09b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -24,6 +24,16 @@ If not, see . All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines. - - - +## [v0.2.0](https://git.nerdcult.net/trinitrix/trinitry/compare/a088388e198940a8cf753d172d075dadf30ef545..v0.2.0) - 2024-05-18 +#### Documentation +- **(src)** Improve the text regarding the allowed chars in an argument - ([a088388](https://git.nerdcult.net/trinitrix/trinitry/commit/a088388e198940a8cf753d172d075dadf30ef545)) - [@soispha](https://git.nerdcult.net/soispha) +#### Features +- **(src)** Actually allow access to the parsed values via getters - ([732037c](https://git.nerdcult.net/trinitrix/trinitry/commit/732037c4a9ce5fa5a4ab32ed60647268ab2778f6)) - [@soispha](https://git.nerdcult.net/soispha) +#### Refactoring +- **(src)** Make the parsing code private to ensure only one entry point - ([227cfe5](https://git.nerdcult.net/trinitrix/trinitry/commit/227cfe5e97a6e5731a60fc9cd9137e36885d8f71)) - [@soispha](https://git.nerdcult.net/soispha) + +- - - + ## [v0.1.0](https://git.nerdcult.net/trinitrix/trinitry/compare/426d4c3ecb781eefb0dee4c0530ca60877ac31bb..v0.1.0) - 2024-05-03 #### Bug Fixes - **(Cargo.lock)** Check in, to make the build reproducible - ([4f26a1e](https://git.nerdcult.net/trinitrix/trinitry/commit/4f26a1e8f57e664ca03a93c766b830e981eccc0e)) - [@soispha](https://git.nerdcult.net/soispha) diff --git a/src/parsing.rs b/src/parsing.rs index ad927c8..3b75b60 100644 --- a/src/parsing.rs +++ b/src/parsing.rs @@ -1,3 +1,25 @@ +/* +* Copyright (C) 2024 - 2024: +* The Trinitrix Project +* 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 . +*/ + use pest::{error::Error, iterators::Pairs, Parser}; use pest_derive::Parser;