-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParser.py
More file actions
35 lines (24 loc) · 776 Bytes
/
Copy pathParser.py
File metadata and controls
35 lines (24 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# coding=utf-8
__author__ = 'PaulieC'
class Parser:
def __init__(self):
self.state = 0
self.load_tokens()
def parse(self, line: str, line_num: int) -> bool:
return self.determine_state(line, line_num)
def determine_state(self, line: str, line_num: int) -> int:
pass
def state_0(self, line: str, line_num: int) -> bool:
pass
def state_1(self, line: str, line_num: int) -> bool:
pass
def state_2(self, line: str, line_num: int) -> bool:
pass
def state_3(self, line: str, line_num: int) -> bool:
pass
def state_4(self, line: str, line_num: int) -> bool:
pass
def load_tokens(self) -> None:
pass
def get_state(self) -> int:
return self.state