bbscript/runtime.py
def resolve_argument(self, arg):
		"""Resolves argument values and calls functions"""
		# check if we have a statement
		if isinstance(arg, list):
			if arg[0] == CMD_ARRAY:
				# we have an array, resolve it to a list of items
				return arg[1:]
			elif isinstance(arg[0], list):
				# we have a block, return it as is
				return arg
			else:
				# we have a statement
				return self.resolve_statement(arg)
		else:
			# we have some other native type, return that
			return arg
Resolves argument values and calls functions
Resolves argument values and calls functions
Resolves argument values and calls functions
def resolve_argument(self, arg):
		if isinstance(arg, list):
			if arg[0] == CMD_ARRAY:
				return arg[1:]
			elif isinstance(arg[0], list):
				return arg
			else:
				return self.resolve_statement(arg)
		else:
			return arg
def resolve_argument ( self , arg ) : if isinstance ( arg , list ) : if arg [ 0 ] == CMD_ARRAY : return arg [ 1 : ] elif isinstance ( arg [ 0 ] , list ) : return arg else : return self . resolve_statement ( arg ) else : return arg
Resolves argument values and calls functions
Resolves argument values and calls functions
"""Resolves argument values and calls functions""" # check if we have a statement # we have an array, resolve it to a list of items # we have a block, return it as is # we have a statement # we have some other native type, return that
self
arg