summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aas.rs10
-rw-r--r--src/app.rs8
-rw-r--r--src/app/init.rs8
-rw-r--r--src/app/main.rs8
-rw-r--r--src/app/print_help.rs8
-rw-r--r--src/app/print_version.rs8
-rw-r--r--src/app/run.rs8
-rw-r--r--src/cpu.rs8
-rw-r--r--src/format.rs8
-rw-r--r--src/is_valid_character.rs9
-rw-r--r--src/log.rs8
-rw-r--r--src/token.rs10
-rw-r--r--src/token/tokenise.rs10
13 files changed, 56 insertions, 55 deletions
diff --git a/src/aas.rs b/src/aas.rs
index 33ae452..03eba25 100644
--- a/src/aas.rs
+++ b/src/aas.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/>.
*/
@@ -34,7 +34,7 @@ pub use is_valid_character::*;
pub const VERSION: (u32, u32, u32) = (
0x0, // Major
- 0x0, // Minor
+ 0x1, // Minor
0x0, // Patch
);
diff --git a/src/app.rs b/src/app.rs
index caa9379..74db8a8 100644
--- a/src/app.rs
+++ b/src/app.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/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/>.
*/
diff --git a/src/cpu.rs b/src/cpu.rs
index 71a82f2..a0bfd05 100644
--- a/src/cpu.rs
+++ b/src/cpu.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/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'
| ' '
diff --git a/src/log.rs b/src/log.rs
index 99601b3..73c24b9 100644
--- a/src/log.rs
+++ b/src/log.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/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)),