diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/aas.rs | 10 | ||||
-rw-r--r-- | src/app.rs | 8 | ||||
-rw-r--r-- | src/app/init.rs | 8 | ||||
-rw-r--r-- | src/app/main.rs | 8 | ||||
-rw-r--r-- | src/app/print_help.rs | 8 | ||||
-rw-r--r-- | src/app/print_version.rs | 8 | ||||
-rw-r--r-- | src/app/run.rs | 8 | ||||
-rw-r--r-- | src/cpu.rs | 8 | ||||
-rw-r--r-- | src/format.rs | 8 | ||||
-rw-r--r-- | src/is_valid_character.rs | 9 | ||||
-rw-r--r-- | src/log.rs | 8 | ||||
-rw-r--r-- | src/token.rs | 10 | ||||
-rw-r--r-- | src/token/tokenise.rs | 10 |
13 files changed, 56 insertions, 55 deletions
@@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ @@ -34,7 +34,7 @@ pub use is_valid_character::*; pub const VERSION: (u32, u32, u32) = ( 0x0, // Major - 0x0, // Minor + 0x1, // Minor 0x0, // Patch ); @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/app/init.rs b/src/app/init.rs index 8ed43ac..6eb0491 100644 --- a/src/app/init.rs +++ b/src/app/init.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/app/main.rs b/src/app/main.rs index bd82623..12fe5be 100644 --- a/src/app/main.rs +++ b/src/app/main.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/app/print_help.rs b/src/app/print_help.rs index 1df895e..5b77527 100644 --- a/src/app/print_help.rs +++ b/src/app/print_help.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/app/print_version.rs b/src/app/print_version.rs index d28e457..cccd08c 100644 --- a/src/app/print_version.rs +++ b/src/app/print_version.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/app/run.rs b/src/app/run.rs index 88d0983..e515232 100644 --- a/src/app/run.rs +++ b/src/app/run.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/format.rs b/src/format.rs index b8afcf1..971af7a 100644 --- a/src/format.rs +++ b/src/format.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/is_valid_character.rs b/src/is_valid_character.rs index acec7fb..9e16830 100644 --- a/src/is_valid_character.rs +++ b/src/is_valid_character.rs @@ -1,27 +1,28 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ pub fn is_valid_character(c: char) -> bool { return match c { + | '\0' | '\t' | '\n' | ' ' @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ diff --git a/src/token.rs b/src/token.rs index 68b7f4e..52994ae 100644 --- a/src/token.rs +++ b/src/token.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ @@ -28,7 +28,7 @@ pub enum Token { BracketRight, Colon, Comma, - Fullstop, + FullStop, Hashtag, Return, StringLiteral(String), diff --git a/src/token/tokenise.rs b/src/token/tokenise.rs index 44ce683..d5e569e 100644 --- a/src/token/tokenise.rs +++ b/src/token/tokenise.rs @@ -1,22 +1,22 @@ /* Copyright 2023 Gabriel Jensen. - This file is part of aas. + This file is part of AAS. - aas is free software: you can redistribute it + AAS 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 + AAS 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 AAS. If not, see <https://www.gnu.org/licenses/>. */ @@ -102,7 +102,7 @@ fn get_next_token(input: &str, index: &mut usize) -> Result<Option<Token>, Strin '\n' => return Ok(Some(Return)), '[' => return Ok(Some(BracketLeft)), ']' => return Ok(Some(BracketRight)), - '.' => return Ok(Some(Fullstop)), + '.' => return Ok(Some(FullStop)), ',' => return Ok(Some(Comma)), ':' => return Ok(Some(Colon)), '#' => return Ok(Some(Hashtag)), |