1: doctype public "-//IDN etl.sf.net//ETL//Grammar 0.2.1";
2: /// This is the grammar that is used to test first choice grammar
3: grammar net.sf.etl.tests.data.first_choice.FirstChoiceGrammar {
4: namespace default f = "http://etl.sf.net/2006/samples/firstChoice/0.1";
5: context default Toplevel {
6: /// The test statement
7: statement Statement {
8: @ value = ^ f:First {
9: @ text =
10: identifier |
11: string(quote='"') |
12: string(prefix=UTF8|utf8, quote='\'') |
13: float(suffix=l|L) |
14: graphics |
15: token('ququ');
16: } / {
17: ^ f:Second {
18: @ text =
19: identifier |
20: integer |
21: token("test") |
22: float |
23: string(quote='"', multiline=true) |
24: string(quote='\'') |
25: string(prefix=UTF8, quote='\'', multiline=true) |
26: {};
27: };
28: };
29: };
30: };
31: };
32: