diff --git a/compiler/2014/LabCommParser.parser b/compiler/2014/LabCommParser.parser index f95ca89d5834b04e977f8ba4e02e7e7604af127d..b5f76be65a17da6629a445042b806e72124c9ca8 100644 --- a/compiler/2014/LabCommParser.parser +++ b/compiler/2014/LabCommParser.parser @@ -65,7 +65,7 @@ List annotation_list = ; String key = IDENTIFIER; -String stringliteral = IDENTIFIER; +String stringliteral = IDENTIFIER | QUOTEDSTRING; Annotation annotation = intention.i | docstring.d; Annotation intention = LPAREN key.k COLON stringliteral.v RPAREN {: return new Intention(k,v); :}; diff --git a/examples/user_types/test.lc b/examples/user_types/test.lc index 05b94c9c2c8e0d9d9ef4c6c7b525d8df41e4909b..860e2fad6d8dcf0710c9d4708d9e338fc05e1594 100644 --- a/examples/user_types/test.lc +++ b/examples/user_types/test.lc @@ -5,9 +5,9 @@ typedef struct { typedef int anInt; typedef void avoid; -sample (function:trigger)(foo:bar) avoid doavoid; +sample (function:"a trigger")(foo:bar) avoid doavoid; -sample (a:b) "a struct with an int and a ref" struct { +sample (a:b) "A struct: an int and a ref." struct { (c:d)(e:f) int x; sample reference; } intAndRef;