vein-lang / vein

🔮⚡️Vein is an open source high-level strictly-typed programming language with a standalone OS, arm and quantum computing support.
https://vein-lang.org
Other
48 stars 6 forks source link

File-scope class member syntax #87

Open 0xF6 opened 2 years ago

0xF6 commented 2 years ago

Define file-scope class member

#space "space"
#use "vein/lang"
#mod public
// file foobar.vein
public Method(): void 
{}

Ishtar view (transformation result)

#space "space"
#use "vein/lang"
public class foobar
{
   public Method(): void 
   {}
}