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

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)\"}
s/[ \t]+$//;
' "$file"
# Fuse the switches of the parser.
case $file in
(*.cc) $fuse_switch $file
# diff -uw $file.bak $file || true
;;
esac
# # Fuse the switches of the parser.
# case $file in
# (*.cc) $fuse_switch $file
# # diff -uw $file.bak $file || true
# ;;
# esac
}
# compile_xml_file XML XSL OUT-EXT
......
......@@ -137,6 +137,8 @@ sub fuse($$)
$_ = '';
}
}
die "still in switch"
if $in_switch;
print $out $_;
}
die "could not insert $pre_case"
......
......@@ -9,7 +9,7 @@ my $VERSION = '2018-03-07 03:47'; # UTC
# If you change this file with Emacs, please let the write hook
# 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
# it under the terms of the GNU General Public License as published by
......
......@@ -57,7 +57,7 @@ using namespace inst;
%require "2.1a"
%skeleton "lalr1.cc"
%error-verbose
%define parse.error verbose
%defines
%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