summaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-08-24 06:57:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-08-24 06:57:09 -0700
commitaf8709c031d7f0b7d61872536922d3acf16180c5 (patch)
treec61a1d5c4eb7fdf06c024303b77fd174ac033b11 /parser.h
parent4e3e4e1ccc60331ff8ff4c1c139e9da3c95e2272 (diff)
downloadtxr-af8709c031d7f0b7d61872536922d3acf16180c5.tar.gz
txr-af8709c031d7f0b7d61872536922d3acf16180c5.tar.bz2
txr-af8709c031d7f0b7d61872536922d3acf16180c5.zip
New --yydebug option.
* parser.y (have_yydebug): New global constant. (yydebug_onoff): New function. * parser.h (have_yydebug, yydebug_onof): Declared. (yydebug_onoff): New function. * txr.c (help): List --yydebug option. (txr_main): --yydebug option implemented.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 3e45e32d..9d4d857c 100644
--- a/parser.h
+++ b/parser.h
@@ -57,10 +57,12 @@ struct parser {
enum prime_parser { prime_lisp, prime_regex };
+extern const int have_yydebug;
extern const wchar_t *spec_file;
extern val form_to_ln_hash;
extern val parser_s;
extern val unique_s;
+void yydebug_onoff(int);
void yyerror(scanner_t *scanner, parser_t *, const char *s);
void yyerr(scanner_t *scanner, const char *s);
void yyerrorf(scanner_t *scanner, val s, ...);