Changeset 1864 for proto/Compiler


Ignore:
Timestamp:
Jan 20, 2012, 8:34:21 PM (7 years ago)
Author:
cameron
Message:

Remove Xerces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r1849 r1864  
    1515        elif isinstance(fncall.func, ast.Attribute) and isinstance(fncall.func.value, ast.Name):
    1616                 iscall = fncall.func.value.id == builtin_fnmod_noprefix and fncall.func.attr == builtin_fnname
    17         return iscall and len(fncall.args) == builtin_arg_cnt and fncall.kwargs == None and fncall.starargs == None
     17        return iscall and len(fncall.args) == builtin_arg_cnt
     18
     19def dump_Call(fncall):
     20        if isinstance(fncall.func, ast.Name): print "fn_name = %s\n" % fncall.func.id
     21        elif isinstance(fncall.func, ast.Attribute) and isinstance(fncall.func.value, ast.Name):
     22                print "fn_name = %s.%s\n" % (fncall.func.value.id, fncall.func.attr)
     23        print "len(fncall.args) = %s\n" % len(fncall.args)
    1824
    1925def is_simd_not(e):
     
    286292                                           ast.Name(callnode.args[1].id, ast.Load())])
    287293      return c
    288     else: return callnode
     294    else:
     295      dump_Call(callnode)
     296      return callnode
    289297  def visit_BinOp(self, exprnode):
    290298    self.generic_visit(exprnode)
Note: See TracChangeset for help on using the changeset viewer.