Commit 1cd09553 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Be more clear wrt function vs method

parent 9edd4aa7
......@@ -685,10 +685,12 @@ def parse_func(tl, rt_type=None, pobj=None):
fname = t.str
if pobj != None and fname[0] == "." and is_c_name(fname[1:]):
fname = pobj + fname
elif not is_c_name(fname):
raise ParseError("Function name '%s' is illegal" % fname)
elif pobj != None and fname[0] != ".":
raise ParseError("Method name '%s' must start with ." % fname)
elif pobj != None and not is_c_name(fname[1:]):
raise ParseError("Method name '%s' is illegal" % fname[1:])
elif not is_c_name(fname):
raise ParseError("Function name '%s' is illegal" % fname)
t = tl.get_token()
if t.str != "(":
......
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