Include parse with debug flag

When "-g" is specified on the commandline, not only the lexer should be
run in debug mode but also the parser.
This commit is contained in:
Sascha Peilicke
2013-09-05 15:19:49 +02:00
parent 5126a571d0
commit 45b4f88e23

View File

@@ -149,7 +149,7 @@ def run():
yacc_optimize=(not args.debug),
tabfile=yacctab,
verbose=args.verbose)
p.parse(filename=u, debuglevel=0)
p.parse(filename=u, debuglevel=args.debug)
if not scope:
scope = p.scope
else:
@@ -171,7 +171,7 @@ def run():
yacc_optimize=(not args.debug),
scope=copy.deepcopy(scope),
verbose=args.verbose)
p.parse(filename=args.target, debuglevel=0)
p.parse(filename=args.target, debuglevel=args.debug)
if args.scopemap:
args.no_css = True
p.scopemap()