doc.yeswiki.pro/node_modules/shiki/samples/ara.sample

30 lines
384 B
Text
Raw Normal View History

2023-05-20 19:37:42 +03:00
namespace MyNamespace;
use MyOtherNamespace\MyOtherClass;
use function MyOtherNamespace\my_other_function;
use const MyOtherNamespace\MY_OTHER_CONST;
const MY_CONST = 1;
type MyType = int;
interface MyInterface {
// ...
}
class MyClass {
// ...
}
enum MyEnum {
// ...
}
function my_function(): void {
// ...
}
https://ara-lang.io/fundamentals/structure.html