Changeset - 4eed8a486a3b
[Not reviewed]
default
0 1 0
Laman - 10 months ago 2024-06-19 23:41:57

removed Symbol.value
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/regexp/token.rs
Show inline comments
 
@@ -35,8 +35,7 @@ pub trait Token {
 
}
 

	
 
pub struct Symbol {
 
	position: usize,
 
	value: char
 
	position: usize
 
}
 

	
 
pub struct Asterisk {
 
@@ -200,7 +199,7 @@ pub fn parse(pattern: &String, offset: u
 
				return Err(ParsingError::OpeningParenthesis {s: pattern.clone(), pos: i});
 
			}
 
			c => {
 
				res.push(Box::new(Symbol{position: i+offset, value: c}));
 
				res.push(Box::new(Symbol{position: i+offset}));
 
				i += 1;
 
			}
 
		}
0 comments (0 inline, 0 general)