deathbeam / spoon

:ramen: Spoon is a programming language that runs blazingly fast, compiles to native code and works everywhere.
https://spoonlang.org
MIT License
56 stars 11 forks source link

annotations and semicolon #4

Closed francescoagati closed 8 years ago

francescoagati commented 8 years ago

Annotations are transpiled with semicolons

self class

@:pippa(123)
def self.main()
  trace("Hello World")
end
package ;using Lambda; class HelloWorld {

@:pippa(123);
static public function main(){
  trace("Hello World");
};
}
deathbeam commented 8 years ago

I think that it is because you have curlys in annotation and transpiler is thinking that it is method call. Thank you for report, I will look at it.

francescoagati commented 8 years ago

works now thanks :-)