Global and local variable. Multiple scopes.
Recursive function call.
Variable data type: int. Function return type: int, void.
Common expressions.
If statement. While statement.
Printf.
The full syntax is in MiniC.ebnf
Ensure you have installed moonbit toolkit
moon build
Because wasm is not convenient to manipulate files, so I hardcode some C programs to moonbit String under test/. You can change the code commented in the main function to test. : )
moon run main