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
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment