summaryrefslogtreecommitdiff
path: root/tikzit/src/common/tikzparser.ym
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/tikzparser.ym')
-rw-r--r--tikzit/src/common/tikzparser.ym10
1 files changed, 5 insertions, 5 deletions
diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym
index 98d25e4..6eea833 100644
--- a/tikzit/src/common/tikzparser.ym
+++ b/tikzit/src/common/tikzparser.ym
@@ -38,7 +38,8 @@ struct noderef {
%defines "common/tikzparser.h"
%pure-parser
%locations
-%parse-param {TikzGraphAssembler *assembler}
+%lex-param {void *scanner}
+%parse-param {void *scanner}
%error-verbose
%union {
@@ -47,8 +48,7 @@ struct noderef {
GraphElementProperty *prop;
GraphElementData *data;
Node *node;
- struct noderef noderef;
-};
+ struct noderef noderef; };
%{
#import "TikzGraphAssembler+Parser.h"
@@ -56,8 +56,8 @@ struct noderef {
#import "GraphElementProperty.h"
#import "Node.h"
#import "tikzlexer.h"
-#define YYLEX_PARAM [assembler scanner]
-void yyerror(YYLTYPE *yylloc, TikzGraphAssembler *assembler, const char *str) {
+#define assembler yyget_extra(scanner)
+void yyerror(YYLTYPE *yylloc, void *scanner, const char *str) {
[assembler reportError:str atLocation:yylloc];
}
%}