Add decorator parsing

This commit is contained in:
kpdecker
2015-08-19 06:59:32 -07:00
parent 2a4a5447f5
commit 408192ba9f
10 changed files with 74 additions and 7 deletions
+27
View File
@@ -120,6 +120,33 @@ interface CommentStatement <: Statement {
}
```
```java
interface Decorator <: Statement {
type: "Decorator";
path: PathExpression | Literal;
params: [ Expression ];
hash: Hash;
strip: StripFlags | null;
}
interface DecoratorBlock <: Statement {
type: "DecoratorBlock";
path: PathExpression | Literal;
params: [ Expression ];
hash: Hash;
program: Program | null;
openStrip: StripFlags | null;
closeStrip: StripFlags | null;
}
```
Decorator paths only utilize the `path.original` value and as a consequence do not support depthed evaluation.
### Expressions
```java