Formatting changes.

* tests/input.at: here.
This commit is contained in:
Akim Demaille
2008-10-23 20:05:27 -05:00
parent 4b4da9fb83
commit dab244d548
2 changed files with 21 additions and 21 deletions

View File

@@ -1,3 +1,8 @@
2008-11-15 Akim Demaille <demaille@gostai.com>
Formatting changes.
* tests/input.at: here.
2008-11-15 Akim Demaille <demaille@gostai.com> 2008-11-15 Akim Demaille <demaille@gostai.com>
Remove duplicate header inclusion. Remove duplicate header inclusion.

View File

@@ -1,6 +1,6 @@
# Checking the Bison scanner. -*- Autotest -*- # Checking the Bison scanner. -*- Autotest -*-
# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Inc. # 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
@@ -69,10 +69,9 @@ AT_CLEANUP
# _AT_UNUSED_VALUES_DECLARATIONS() # _AT_UNUSED_VALUES_DECLARATIONS()
# -------------------------------------------- # --------------------------------
# Generate the token, type, and destructor # Generate the token, type, and destructor
# declarations for the unused values tests. # declarations for the unused values tests.
m4_define([_AT_UNUSED_VALUES_DECLARATIONS], m4_define([_AT_UNUSED_VALUES_DECLARATIONS],
[[[%token <integer> INT; [[[%token <integer> INT;
%type <integer> a b c d e f g h i j k l; %type <integer> a b c d e f g h i j k l;
@@ -80,15 +79,11 @@ m4_define([_AT_UNUSED_VALUES_DECLARATIONS],
# AT_CHECK_UNUSED_VALUES(DECLARATIONS_AFTER, CHECK_MIDRULE_VALUES) # AT_CHECK_UNUSED_VALUES(DECLARATIONS_AFTER, CHECK_MIDRULE_VALUES)
# ------------------------------------------------------------------ # ----------------------------------------------------------------
# Generate a grammar to test unused values, # Generate a grammar to test unused values, compile it, run it. If
# compile it, run it. If DECLARATIONS_AFTER # DECLARATIONS_AFTER is set, then the token, type, and destructor
# is set, then the token, type, and destructor # declarations are generated after the rules rather than before. If
# declarations are generated after the rules # CHECK_MIDRULE_VALUES is set, then --warnings=midrule-values is set.
# rather than before. If CHECK_MIDRULE_VALUES
# is set, then --warnings=midrule-values is
# set.
m4_define([AT_CHECK_UNUSED_VALUES], m4_define([AT_CHECK_UNUSED_VALUES],
[AT_DATA([input.y], [AT_DATA([input.y],
m4_ifval($1, [ m4_ifval($1, [
@@ -600,8 +595,8 @@ AT_CHECK_REQUIRE(100.0, 63)
AT_SETUP([String aliases for character tokens]) AT_SETUP([String aliases for character tokens])
# Bison once thought a character token and its alias were different symbols # Bison once thought a character token and its alias were different
# with the same user token number. # symbols with the same user token number.
AT_DATA_GRAMMAR([input.y], AT_DATA_GRAMMAR([input.y],
[[%token 'a' "a" [[%token 'a' "a"
@@ -621,10 +616,10 @@ AT_CLEANUP
AT_SETUP([Unclosed constructs]) AT_SETUP([Unclosed constructs])
# Bison's scan-gram.l once forgot to STRING_FINISH some unclosed constructs, so # Bison's scan-gram.l once forgot to STRING_FINISH some unclosed
# they were prepended to whatever it STRING_GROW'ed next. It also threw them # constructs, so they were prepended to whatever it STRING_GROW'ed
# away rather than returning them to the parser. The effect was confusing # next. It also threw them away rather than returning them to the
# subsequent error messages. # parser. The effect was confusing subsequent error messages.
AT_DATA([input.y], AT_DATA([input.y],
[[%token A "a [[%token A "a
@@ -666,8 +661,8 @@ AT_CLEANUP
AT_SETUP([%start after first rule]) AT_SETUP([%start after first rule])
# Bison once complained that a %start after the first rule was a redeclaration # Bison once complained that a %start after the first rule was a
# of the start symbol. # redeclaration of the start symbol.
AT_DATA([input.y], AT_DATA([input.y],
[[%% [[%%