use crate::lexer::token::lexeme::Lexeme;
use crate::lexer::token::location::Location;
use crate::lexer::token::Token;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Comment {}
impl Comment {
pub const START: &'static str = "//";
pub const END: &'static str = "\n";
pub fn parse(input: &str) -> Token {
let end_position = input.find(Self::END).unwrap_or(input.len());
let length = (end_position + Self::END.len())
.try_into()
.expect("the YUL should be of reasonable size");
Token::new(Location::new(1, 1), Lexeme::Comment, length)
}
}