summaryrefslogtreecommitdiff
path: root/tikzit/src/common/tikzparser.ym
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@users.sourceforge.net>2013-01-27 16:54:57 +0000
committerJohan Paulsson <gonz@users.sourceforge.net>2013-01-27 16:54:57 +0000
commitd35a186932e95b979bb947110a2e7d2cca41fcc9 (patch)
treec01417f00717afd223a9a2052cfaa809e8de655e /tikzit/src/common/tikzparser.ym
parent46d894569372dea8c3e3f698b361f68d6bbebde6 (diff)
Better parser errors on syntax errors. Will show line number, description and where the error happened.
Test function for delimited string if they will break reprising.
Diffstat (limited to 'tikzit/src/common/tikzparser.ym')
-rw-r--r--tikzit/src/common/tikzparser.ym3
1 files changed, 3 insertions, 0 deletions
diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym
index 532b6c8..487cfd4 100644
--- a/tikzit/src/common/tikzparser.ym
+++ b/tikzit/src/common/tikzparser.ym
@@ -29,6 +29,9 @@
#import "TikzGraphAssembler.h"
#import "GraphElementProperty.h"
+extern char* yystr;
+extern int yylineno;
+extern int tokenpos;
extern int yylex(void);
extern void yyerror(const char *str);