Move example code to examples directory
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.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// var Person :: struct {
|
||||
// name: String,
|
||||
// age: Int,
|
||||
// address: String,
|
||||
// }
|
||||
//func_name :: fn(param: Number, param2: String) {param is Int} do
|
||||
func_name :: fn(param: Int, param2: String) do
|
||||
print param;
|
||||
cavallo := 5;
|
||||
print cavallo;
|
||||
while cavallo < 10 do
|
||||
cavallo = cavallo + 1;
|
||||
print cavallo;
|
||||
end
|
||||
|
||||
for i := 11; i <= 21; i = i + 1; do
|
||||
print i;
|
||||
end
|
||||
|
||||
return False or True;
|
||||
end
|
||||
|
||||
func_name(1,2)
|
||||
Reference in New Issue
Block a user