Hints for the hints throne

This commit is contained in:
XANTRONIX Development 2024-01-02 16:24:10 -05:00
parent 7f1a6aba98
commit a4e3957599

View file

@ -56,12 +56,15 @@ class Path():
def __init__(self, commands: Iterable): def __init__(self, commands: Iterable):
self.commands = commands self.commands = commands
def is_command(c): @staticmethod
def is_command(c: int):
return (c >= ord('a') and c <= ord('z')) or (c >= ord('A') and c <= ord('Z')) return (c >= ord('a') and c <= ord('z')) or (c >= ord('A') and c <= ord('Z'))
def is_number(c): @staticmethod
def is_number(c: int):
return (c >= ord('0') and c <= ord('9')) return (c >= ord('0') and c <= ord('9'))
@staticmethod
def parse(text: str) -> list: def parse(text: str) -> list:
commands = list() commands = list()
command = PathCommand() command = PathCommand()