hchiam / please

An experimental programming language (transpiler) to make it easier to write code with speech recognition.
MIT License
1 stars 1 forks source link

functions can return #43

Closed hchiam closed 7 years ago

hchiam commented 7 years ago

This prints out None instead of it works:

Please define function test with item
    Please return variable item
Please end function
Please assign it works to other
Please assign use function test on variable other to variable cow
please print variable cow

function.local_variables: {'item': 'it works to None'}

get: variable_dictionary: {'test': <main.Function_data object at 0x10eef2eb8>, 'other': 'it works', 'output': None, '': 'it works to None'}