Commit 4c014230 authored by Michael Büsch's avatar Michael Büsch

fupcompiler: Compile interface after grids

This way new interface or temp fields can be added during compilation of the grid.
Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent df0faccb
......@@ -180,8 +180,7 @@ class FupCompiler(object):
# Optimize the generated instructions
pass#TODO
# Store the AWL code in the AWL source object.
self.awlSource.sourceBytes = self.__genAwlCode(insns)
return insns
def __trycompile(self, fupSource, mnemonics):
self.reset()
......@@ -192,8 +191,11 @@ class FupCompiler(object):
filepath=fupSource.filepath)
if self.__parse():
self.__compileBlockDecl()
insns = self.__compileGrids()
self.__compileInterface()
self.__compileGrids()
# Store the AWL code in the AWL source object.
self.awlSource.sourceBytes = self.__genAwlCode(insns)
return self.getAwlSource()
def compile(self, fupSource, mnemonics):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment