make decoration comments symmetric

This commit is contained in:
Michael Sippel 2023-10-02 01:27:50 +02:00
parent cb91fa52de
commit 8ec95dfbed
Signed by: senvas
GPG key ID: F96CF119C34B64A6
3 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,5 @@
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
#[derive(PartialEq, Eq, Clone, Debug)]
pub enum LadderTypeToken {
@ -20,7 +20,7 @@ pub enum LexError {
InvalidChar,
}
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
#[derive(PartialEq, Eq, Clone, Debug)]
enum LexerState {
@ -41,7 +41,7 @@ impl LexerState {
}
}
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
pub struct LadderTypeLexer<It>
where It: std::iter::Iterator<Item = char>
@ -145,3 +145,5 @@ where It: Iterator<Item = char>
}
}
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\

View file

@ -40,7 +40,7 @@ impl TypeTerm {
pub fn arg(&mut self, t: impl Into<TypeTerm>) -> &mut Self {
match self {
TypeTerm::App(args) => {
args.push(t.into());
args.push(t.into());
}
_ => {
@ -63,3 +63,5 @@ impl TypeTerm {
}
}
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\

View file

@ -1,5 +1,7 @@
use crate::lexer::*;
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
#[test]
fn test_lexer_symbol() {
let mut lex = LadderTypeLexer::from("symbol".chars());