Commit 014c75e7 authored by Etienne Renault's avatar Etienne Renault
Browse files

regen parser and fix fusing

* build-aux/bin/bison++.in,
build-aux/bin/fuse-switch,
build-aux/gitlog-to-changelog,
src/parse/asm-parse.yy.gen.py: Here.
parent 60b0e894
Pipeline #6987 passed with stage
in 4 minutes and 11 seconds
...@@ -118,12 +118,12 @@ s{include \"(position.hh|location.hh)\"} ...@@ -118,12 +118,12 @@ s{include \"(position.hh|location.hh)\"}
s/[ \t]+$//; s/[ \t]+$//;
' "$file" ' "$file"
# Fuse the switches of the parser. # # Fuse the switches of the parser.
case $file in # case $file in
(*.cc) $fuse_switch $file # (*.cc) $fuse_switch $file
# diff -uw $file.bak $file || true # # diff -uw $file.bak $file || true
;; # ;;
esac # esac
} }
# compile_xml_file XML XSL OUT-EXT # compile_xml_file XML XSL OUT-EXT
......
...@@ -137,6 +137,8 @@ sub fuse($$) ...@@ -137,6 +137,8 @@ sub fuse($$)
$_ = ''; $_ = '';
} }
} }
die "still in switch"
if $in_switch;
print $out $_; print $out $_;
} }
die "could not insert $pre_case" die "could not insert $pre_case"
......
...@@ -9,7 +9,7 @@ my $VERSION = '2018-03-07 03:47'; # UTC ...@@ -9,7 +9,7 @@ my $VERSION = '2018-03-07 03:47'; # UTC
# If you change this file with Emacs, please let the write hook # If you change this file with Emacs, please let the write hook
# do its job. Otherwise, update this string manually. # do its job. Otherwise, update this string manually.
# Copyright (C) 2008-2018 Free Software Foundation, Inc. # Copyright (C) 2008-2019 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify # This program 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
......
...@@ -57,7 +57,7 @@ using namespace inst; ...@@ -57,7 +57,7 @@ using namespace inst;
%require "2.1a" %require "2.1a"
%skeleton "lalr1.cc" %skeleton "lalr1.cc"
%error-verbose %define parse.error verbose
%defines %defines
%debug %debug
......
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