Skip to content
Snippets Groups Projects
Commit e44e0320 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

made QUOTEDSTRING an option for Intention values

parent 94be58ca
No related branches found
No related tags found
No related merge requests found
......@@ -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); :};
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment