1keynote-version: 2 # some comment
2comment: The weird looking string test in the conditions field is for
3	 verifying correctness of string grammar
4# comment inside comment field, no problem
5#authorizer: $$$$foo 	# Don't try this at home
6# testing # testing # testing
7# "
8#
9authorizer: "POLICY"
10licensees:  (MYKEY) && ((("Key3") || "Key4") && (MYKEY)) || TWOKEY
11local-constants: MYKEY = "Key3"
12# we can put a comment here
13	 TWOKEY = "dsa-hex:3081de02402ae5e2d8c12fbaec4934dd5a98cbe39159\
14		   f1b8d02143a5e3d07c96c0acedef73d508a54286bb19b53cd2b7\
15		   bd0beca47b12ec75ddd7a7aeece8b724fbf940ca220241008cfe\
16		   2799793dc5eef44cc78228d2a42e76246326e6f442d7c14eb705\
17		   3e48d49a001350177e7d320d762d87f10ecbeceffb12b359e4c0\
18		   f827e05b34ef336823710215008773db9f8a9d42e7ad53c023d1\
19		   61dda43ae081a9024069f506a956d69c8a0a2ab6d6a888f57dd0\
20		   6593f537135b6d3c2bc928634f7e5e03b12c9fbac7ce4a6ce708\
21		   b63bdcda576e5eeecfb68930a5c3ca8df71d84fd0e"
22conditions: app_domain == "testing" ->
23# gratuitous comment
24 	{
25	    1 / 0 == 1 -> "true"; # runtime exception
26	    true -> "false";
27	    request == "whatever" -> "false";
28	TWOKEY == "dsa-hex:3081de02402ae5e2d8c12fbaec4934dd5a98cbe39159\
29                   f1b8d02143a5e3d07c96c0acedef73d508a54286bb19b53cd2b7\
30                   bd0beca47b12ec75ddd7a7aeece8b724fbf940ca220241008cfe\
31                   2799793dc5eef44cc78228d2a42e76246326e6f442d7c14eb705\
32                   3e48d49a001350177e7d320d762d87f10ecbeceffb12b359e4c0\
33                   f827e05b34ef336823710215008773db9f8a9d42e7ad53c023d1\
34                   61dda43ae081a9024069f506a956d69c8a0a2ab6d6a888f57dd0\
35                   6593f537135b6d3c2bc928634f7e5e03b12c9fbac7ce4a6ce708\
36                   b63bdcda576e5eeecfb68930a5c3ca8df71d84fd0e" &&
37		@(foo) == @foo &&
38        "this string contains a newline\n\
39 \ followed by one space." ==
40        "this\ string\ contains\ a\ newline\n\ foll\
41                owed\ by\ one\ space\." &&
42        "this string contains a newline\n\ \
43 followed by one space." ==
44        "this string contains a newline\012\040followed by one space." &&
45	    request == "test" -> "true"; # this is another comment
46	    request == "whatever3" -> "true";
47	    request == "test" -> "fa" . "lse";
48	};
49