make decoration comments symmetric
This commit is contained in:
parent
cb91fa52de
commit
8ec95dfbed
3 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Clone, Debug)]
|
#[derive(PartialEq, Eq, Clone, Debug)]
|
||||||
pub enum LadderTypeToken {
|
pub enum LadderTypeToken {
|
||||||
|
@ -20,7 +20,7 @@ pub enum LexError {
|
||||||
InvalidChar,
|
InvalidChar,
|
||||||
}
|
}
|
||||||
|
|
||||||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Clone, Debug)]
|
#[derive(PartialEq, Eq, Clone, Debug)]
|
||||||
enum LexerState {
|
enum LexerState {
|
||||||
|
@ -41,7 +41,7 @@ impl LexerState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
pub struct LadderTypeLexer<It>
|
pub struct LadderTypeLexer<It>
|
||||||
where It: std::iter::Iterator<Item = char>
|
where It: std::iter::Iterator<Item = char>
|
||||||
|
@ -145,3 +145,5 @@ where It: Iterator<Item = char>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
|
|
|
@ -63,3 +63,5 @@ impl TypeTerm {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
use crate::lexer::*;
|
use crate::lexer::*;
|
||||||
|
|
||||||
|
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>\\
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_lexer_symbol() {
|
fn test_lexer_symbol() {
|
||||||
let mut lex = LadderTypeLexer::from("symbol".chars());
|
let mut lex = LadderTypeLexer::from("symbol".chars());
|
||||||
|
|
Loading…
Reference in a new issue