Hope this helps!
self.error()
if self.current_char == '-': self.advance() return Token(MINUS, '-')
# Lexer class class Lexer: def __init__(self, text): self.text = text self.pos = 0 self.current_char = self.text[self.pos]
def error(self): raise Exception('Invalid character')
All content on https://manhwa18.cc is collected on the internet. So there are any issues regarding selling rights, please contact me directly at the email address [email protected]. If your request is reasonable we will remove it immediately. Sincerely thank you !!
Hope this helps!
self.error()
if self.current_char == '-': self.advance() return Token(MINUS, '-')
# Lexer class class Lexer: def __init__(self, text): self.text = text self.pos = 0 self.current_char = self.text[self.pos]
def error(self): raise Exception('Invalid character')
As an independent publisher, we rely on ads to support our website. Without ads, we'll go out of business. We need your help!
Thank you for your support!