remove the pipe operator

This commit is contained in:
2026-06-06 19:41:54 +02:00
parent c41c22e936
commit 3a53cd4f32
9 changed files with 19 additions and 79 deletions

View File

@@ -21,7 +21,6 @@ pub enum TokenType {
BitOr,
LogicalAnd,
LogicalOr,
Pipe,
DoubleDot,
ShiftLeft,
ShiftRight,
@@ -202,9 +201,7 @@ impl Tokenizer {
}
}
'|' => {
if self.match_char('>') {
self.add_token(TokenType::Pipe)?
} else if self.match_char('|') {
if self.match_char('|') {
self.add_token(TokenType::LogicalOr)?
} else {
self.add_token(TokenType::BitOr)?