diff options
Diffstat (limited to 'src/is_valid_character.rs')
-rw-r--r-- | src/is_valid_character.rs | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/is_valid_character.rs b/src/is_valid_character.rs index 7a8201f..70cfa03 100644 --- a/src/is_valid_character.rs +++ b/src/is_valid_character.rs @@ -1,22 +1,22 @@ /* - Copyright 2023 Gabriel Bjørnager Jensen. + Copyright 2023-2024 Gabriel Bjørnager Jensen. - This file is part of AAS. + This file is part of eAS. - AAS is free software: you can redistribute it + eAS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - AAS is distributed in the hope that it will + eAS 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 along with AAS. If not, + General Public License along with eAS. If not, see <https://www.gnu.org/licenses/>. */ @@ -26,12 +26,11 @@ pub fn is_valid_character(c: char) -> bool { | '\t' | '\n' | ' ' - | '!' - | '"' - | '#' - | '*' - | ',' - | '.' + | '!' // Some operands + | '"' // Strings + | '#' // Numeric litterals + | ',' // Operand separators + | '.' // Floating-point literals | '0' | '1' | '2' @@ -42,9 +41,7 @@ pub fn is_valid_character(c: char) -> bool { | '7' | '8' | '9' - | ':' - | ';' - | '@' + | ';' // Comments | 'A' | 'B' | 'C' |