Squash commits for public release
This commit is contained in:
20
utils/compilers/DevTreeCompiler/Parser/Parser.py
Normal file
20
utils/compilers/DevTreeCompiler/Parser/Parser.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import json
|
||||
|
||||
class Parser():
|
||||
def __init__(self, input_file):
|
||||
self.decoded_data = None
|
||||
self.input_file = input_file
|
||||
|
||||
def data(self):
|
||||
if self.decoded_data is None:
|
||||
f = open(self.input_file)
|
||||
self.decoded_data = json.load(f)
|
||||
f.close()
|
||||
|
||||
return self.decoded_data
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user