parameters: (self, t)
docstring: inst : ID LPAREN arg_list RPAREN
docstring_summary: inst : ID LPAREN arg_list RPAREN
docstring_tokens: inst : ID LPAREN arg_list RPAREN
function: def p_inst_0(self, t):
          'inst : ID LPAREN arg_list RPAREN'
          # Pass the ID and arg list to the current format class to deal with.
          currentFormat = self.formatStack.top()
          codeObj = currentFormat.defineInst(self, t[1], t[3], t.lexer.lineno)
          args = ','.join(list(map(str, t[3])))
          args = re.sub('(?m)^', '//', args)
          args = re.sub('^//', '', args)
          comment = '\n// %s::%s(%s)\n' % (currentFormat.id, t[1], args)
          codeObj.prepend_all(comment)
          t[0] = codeObj
function_tokens: def p_inst_0 ( self , t ) : # Pass the ID and arg list to the current format class to deal with. currentFormat = self . formatStack . top ( ) codeObj = currentFormat . defineInst ( self , t [ 1 ] , t [ 3 ] , t . lexer . lineno ) args = ',' . join ( list ( map ( str , t [ 3 ] ) ) ) args = re . sub ( '(?m)^' , '//' , args ) args = re . sub ( '^//' , '' , args ) comment = '\n// %s::%s(%s)\n' % ( currentFormat . id , t [ 1 ] , args ) codeObj . prepend_all ( comment ) t [ 0 ] = codeObj