Files
Mauro Baladés 058dc15581 New snowball syntax (#5738)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-11-13 20:08:09 -06:00

17 lines
583 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Snowball compiler (MIT) l、
// https://github.com/snowball-lang/snowball (゚、 。7
// l、゙~ヽ
// Testing snowball code example じし(_,)
// Docs: https://snowball-lang.gitbook.io/docs/
// Note: Execute with `snowball test` command
// Give the function the `@test` attribute to make it a test function
// Test functions must return an integer
@test
func should_pass() i32 {
return 1;
}
// Will be overriden by the test function
public func main() i32 {}