Commit 248eb106 authored by Roland Levillain's avatar Roland Levillain

Bison 2.7 compatibility.

	* src/parse/libparse.cc (parse::parse): Do not copy the parser
	instance.
parent fd02bdda
// //
// This file is part of Nolimips, a MIPS simulator with unlimited registers // This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2003, 2004 Benoit Perrot <benoit@lrde.epita.fr> // Copyright (C) 2003, 2004, 2013 Benoit Perrot <benoit@lrde.epita.fr>
// //
// Nolimips is free software; you can redistribute it and/or modify // Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by // it under the terms of the GNU General Public License as published by
...@@ -45,7 +45,7 @@ namespace parse ...@@ -45,7 +45,7 @@ namespace parse
program_builder.set_nop_after_branch(nop_after_branch_p); program_builder.set_nop_after_branch(nop_after_branch_p);
std::string dummy(filename); std::string dummy(filename);
yy::parser parser = yy::parser(dummy, program_builder); yy::parser parser(dummy, program_builder);
parser.set_debug_level(trace_parse_p); parser.set_debug_level(trace_parse_p);
scan_open(filename, trace_scan_p); scan_open(filename, trace_scan_p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment