basic parser structure
This commit is contained in:
parent
8c5497db0b
commit
278314bdc0
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
class Parser:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def parse_data(self, data):
|
||||||
|
self.pre_parse(data)
|
||||||
|
return self.generate_parse_result(data)
|
||||||
|
|
||||||
|
def pre_parse(self, data):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def generate_parse_result(self, result):
|
||||||
|
pass
|
||||||
Loading…
Add table
Add a link
Reference in a new issue