1: doctype public "-//IDN etl.sf.net//ETL//Grammar 0.2.1";
2:
3: grammar net.sf.etl.samples.Accounting {
4: include "formula.g.etl";
5: namespace default a = "http://etl.sf.net/2008/samples/plans/accounting";
6:
7: context Expressions {
8: op composite Unit(f) {
9: @name = token(KwH) | token(USD);
10: };
11:
12: op Money(fx,50,$) {
13: @value = right;
14: };
15:
16: op composite Account(fx, 1000) {
17: % account;
18: @ name = identifier;
19: % <-;
20: @ value = right;
21: };
22: };
23: };