The commit moves example and test files to a dedicated examples directory and updates the code for function and variable handling. The subject line captures the primary purpose of the move operation. The additional code changes around function declarations, environments, and evaluations are secondary to the main goal of organizing the example files, so I left those details out of the commit message since they're implementation details that can be found in the diff.
21 lines
303 B
Lox
21 lines
303 B
Lox
|
|
function :: fn() do
|
|
print "Function";
|
|
end
|
|
|
|
|
|
function_factory :: fn() do
|
|
print "Function Factory";
|
|
function
|
|
end
|
|
|
|
function_fatcoty_factory :: fn() do
|
|
print "Function Factory Factory";
|
|
function_factory
|
|
end
|
|
|
|
//function();
|
|
//function_factory()();
|
|
function_fatcoty_factory()()();
|
|
clock()
|