ara.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.7, at build/shiki/samples/ara.sample
| 1 | namespace MyNamespace; |
| 2 | |
| 3 | use MyOtherNamespace\MyOtherClass; |
| 4 | |
| 5 | use function MyOtherNamespace\my_other_function; |
| 6 | |
| 7 | use const MyOtherNamespace\MY_OTHER_CONST; |
| 8 | |
| 9 | const MY_CONST = 1; |
| 10 | |
| 11 | type MyType = int; |
| 12 | |
| 13 | interface MyInterface { |
| 14 | // ... |
| 15 | } |
| 16 | |
| 17 | class MyClass { |
| 18 | // ... |
| 19 | } |
| 20 | |
| 21 | enum MyEnum { |
| 22 | // ... |
| 23 | } |
| 24 | |
| 25 | function my_function(): void { |
| 26 | // ... |
| 27 | } |
| 28 | |
| 29 | https://ara-lang.io/fundamentals/structure.html |
| 30 |