File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1807,11 +1807,9 @@ def _inline(ins):
18071807
18081808
18091809# -------- 3 address code implementation ----------
1810-
1811- class Quad (object ):
1810+ class Quad :
18121811 """ Implements a Quad code instruction.
18131812 """
1814-
18151813 def __init__ (self , * args ):
18161814 """ Creates a quad-uple checking it has the current params.
18171815 Operators should be passed as Quad('+', tSymbol, val1, val2)
@@ -1823,7 +1821,7 @@ def __init__(self, *args):
18231821 errors .throw_invalid_quad_code (args [0 ])
18241822
18251823 if len (args ) - 1 != QUADS [args [0 ]][0 ]:
1826- errors .throw_invalid_quad_params (args [0 ], len (args ) - 1 )
1824+ errors .throw_invalid_quad_params (args [0 ], len (args ) - 1 , QUADS [ args [ 0 ]][ 0 ] )
18271825
18281826 args = tuple ([str (x ) for x in args ]) # Convert it to strings
18291827
You can’t perform that action at this time.
0 commit comments