Added syntax function support. So far only supports functions with one
parameter in function calling, but function def works as expected.