Implement parsing annotations and modifiers starting with '@'

This commit is contained in:
Denis Zharkov
2015-05-04 11:50:16 +03:00
parent b13e932c3c
commit 7d8351abc6
27 changed files with 2275 additions and 88 deletions
@@ -0,0 +1,7 @@
fun foo() {
@ann ({ it -> it + 1}) // lambda parsed as argument of annotation, and annotated expression is "print(1)"
print(1)
@ann() ({ it -> it + 1}) // lambda in parenthesises annotated, "print(1)" is separated expression
print(1)
}