Skip to content

Commit

Permalink
Solve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Dec 4, 2021
1 parent 3c4febc commit 7756350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pya2l/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def import_a2l(
prepro = Preprocessor()
prepro_result = prepro.process(self._a2lfn, encoding = detect_encoding(self._a2lfn))
a2l_parser = ParserWrapper("a2l", "a2lFile", A2LListener, debug = debug, line_map = prepro_result.line_map)
#print(prepro_result.a2l_data)

print(prepro_result.if_data_sections)

self.db = a2l_parser.parseFromString(prepro_result.a2l_data, dbname = str(self._dbfn))
self.session = self.db.session
return self.session
Expand Down
2 changes: 1 addition & 1 deletion pya2l/a2l_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def exitGuardRails(self, ctx):
def exitIfData(self, ctx):
ctx.value = model.IfData(name="")
self.db.session.add(ctx.value)
#print(":", ctx.start, ctx.stop)
#print("IfData:", ctx.start, ctx.stop)

def exitMatrixDim(self, ctx):
xDim = ctx.xDim.value
Expand Down

0 comments on commit 7756350

Please sign in to comment.