[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/6] tests: simplifications
From: |
Akim Demaille |
Subject: |
[PATCH 1/6] tests: simplifications |
Date: |
Mon, 5 Nov 2012 13:14:25 +0100 |
* tests/actions.at (Exotic Dollars): Formatting changes.
Use AT_FULL_COMPILE.
(AT_CHECK_PRINTER_AND_DESTRUCTOR): Remove useless initialization of @$.
---
tests/actions.at | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/tests/actions.at b/tests/actions.at
index 9ec0237..b2d5e9d 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -159,8 +159,7 @@ main (void)
}
]])
-AT_BISON_CHECK([[-o input.c input.y]])
-AT_COMPILE([[input]])
+AT_FULL_COMPILE([input])
AT_PARSER_CHECK([[./input]], [[0]],
[[6
]])
@@ -305,7 +304,7 @@ line:
$$ = -1;
V(line, $$, @$, ": ");
V('(', $1, @1, " ");
- fprintf (stderr, "error (@%d-%d) ", RANGE(@2));
+ fprintf (stderr, "error (@%d-%d) ", RANGE (@2));
V(')', $3, @3, "\n");
}
;
@@ -595,10 +594,6 @@ AT_DATA_GRAMMAR([[input.y]],
[[%error-verbose
%debug
%locations
-%initial-action {
- @$.first_line = @$.last_line = 1;
- @$.first_column = @$.last_column = 1;
-}
%{
# include <stdio.h>
@@ -1237,7 +1232,7 @@ AT_CHECK_ACTION_LOCATIONS([[%printer]])
# Check that we can used qualified $$ (v.g., $<type>$) not only in
# rule actions, but also where $$ is valid: %printer and %destructor.
#
-# FIXME: Not actually checking %desctructor, but it's the same code as
+# FIXME: Not actually checking %destructor, but it's the same code as
# %printer...
#
# To do that, use a semantic value that has two fields (sem_type),
--
1.8.0
- [PATCH 0/6] {branch-2.6} Minor changes mostly in the test suite, Akim Demaille, 2012/11/06
- [PATCH 2/6] tests: handle %parse-param in the generated yyerror, Akim Demaille, 2012/11/06
- [PATCH 3/6] tests: fix locations in C, Akim Demaille, 2012/11/06
- [PATCH 4/6] tests: remove useless location initialization., Akim Demaille, 2012/11/06
- [PATCH 5/6] c++: fix position operator signatures, Akim Demaille, 2012/11/06
- [PATCH 1/6] tests: simplifications,
Akim Demaille <=
- [PATCH 6/6] doc: formatting changes, Akim Demaille, 2012/11/06