MPC/parser/lexererr.py
Nguyễn Anh Khoa bed5a47d55 init
2018-12-04 02:05:06 +07:00

15 lines
324 B
Python

class ErrorToken(Exception):
def __init__(self, s):
self.message = "Error Token " + s
class UncloseString(Exception):
def __init__(self, s):
self.message = "Unclosed String: " + s
class IllegalEscape(Exception):
def __init__(self, s):
self.message = "Illegal Escape In String: " + s