Hints for the hints throne
This commit is contained in:
parent
7f1a6aba98
commit
a4e3957599
1 changed files with 5 additions and 2 deletions
|
@ -56,12 +56,15 @@ class Path():
|
|||
def __init__(self, commands: Iterable):
|
||||
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'))
|
||||
|
||||
def is_number(c):
|
||||
@staticmethod
|
||||
def is_number(c: int):
|
||||
return (c >= ord('0') and c <= ord('9'))
|
||||
|
||||
@staticmethod
|
||||
def parse(text: str) -> list:
|
||||
commands = list()
|
||||
command = PathCommand()
|
||||
|
|
Loading…
Add table
Reference in a new issue