From e44e03207251a21b6ce2434e41630baf26a57ed8 Mon Sep 17 00:00:00 2001
From: Sven Gestegard Robertz <sven.robertz@cs.lth.se>
Date: Mon, 18 May 2015 12:24:15 +0200
Subject: [PATCH] made QUOTEDSTRING an option for Intention values

---
 compiler/2014/LabCommParser.parser | 2 +-
 examples/user_types/test.lc        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/2014/LabCommParser.parser b/compiler/2014/LabCommParser.parser
index f95ca89..b5f76be 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 05b94c9..860e2fa 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;
-- 
GitLab