summaryrefslogtreecommitdiff
path: root/tikzit/src/data/tikzparser.ypp
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/data/tikzparser.ypp')
-rw-r--r--tikzit/src/data/tikzparser.ypp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tikzit/src/data/tikzparser.ypp b/tikzit/src/data/tikzparser.ypp
index e97b1c7..ca3b4e4 100644
--- a/tikzit/src/data/tikzparser.ypp
+++ b/tikzit/src/data/tikzparser.ypp
@@ -52,7 +52,7 @@
%{
#include "node.h"
#include "edge.h"
- #include "graphelementdata.h"
+#include "graphelementdata.h"
#include "graphelementproperty.h"
#include "tikzlexer.h"
@@ -139,21 +139,21 @@ optproperties:
| { $$ = 0; };
properties: extraproperties property
{
- [$1 addObject:$2];
+ $1 << $2;
$$ = $1;
};
extraproperties:
extraproperties property ","
{
- [$1 addObject:$2];
+ $1 << $2;
$$ = $1;
}
- | { $$ = [GraphElementData data]; };
+ | { $$ = GraphElementData(); };
property:
val "=" val
- { $$ = [GraphElementProperty property:$1 withValue:$3]; }
+ { $$ = GraphElementProperty($1,$3); }
| val
- { $$ = [GraphElementProperty atom:$1]; };
+ { $$ = GraphElementProperty($1); };
val: PROPSTRING { $$ = $1; } | DELIMITEDSTRING { $$ = $1; };
nodename: "(" REFSTRING ")" { $$ = $2; };