[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] tests: comment changes
From: |
Akim Demaille |
Subject: |
[PATCH 2/9] tests: comment changes |
Date: |
Sun, 2 Feb 2020 15:26:20 +0100 |
* tests/calc.at: Shorten titles and reduce redundancy.
---
tests/calc.at | 57 ++++++++++++++++++---------------------------------
1 file changed, 20 insertions(+), 37 deletions(-)
diff --git a/tests/calc.at b/tests/calc.at
index bcaffb79..2884275e 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -799,11 +799,11 @@ AT_CLEANUP
-# ------------------------ #
-# Simple LALR Calculator. #
-# ------------------------ #
+# ----------------- #
+# LALR Calculator. #
+# ----------------- #
-AT_BANNER([[Simple LALR(1) Calculator.]])
+AT_BANNER([[LALR(1) Calculator.]])
# AT_CHECK_CALC_LALR([BISON-OPTIONS])
# -----------------------------------
@@ -850,20 +850,15 @@ AT_CHECK_CALC_LALR([%define parse.error custom %locations
%define api.prefix {ca
AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix
{calc} %parse-param {semantic_value *result}{int *count}{int *nerrs} %define
api.push-pull both %define api.pure full])
AT_CHECK_CALC_LALR([%define parse.error custom %locations %define api.prefix
{calc} %parse-param {semantic_value *result}{int *count}{int *nerrs} %define
api.push-pull both %define api.pure full %define parse.lac full])
-# ----------------------- #
-# Simple GLR Calculator. #
-# ----------------------- #
+# ---------------- #
+# GLR Calculator. #
+# ---------------- #
-AT_BANNER([[Simple GLR Calculator.]])
+AT_BANNER([[GLR Calculator.]])
-# AT_CHECK_CALC_GLR([BISON-OPTIONS])
-# ----------------------------------
-# Start a testing chunk which compiles 'calc' grammar with
-# BISON-OPTIONS and %glr-parser, and performs several tests over the parser.
m4_define([AT_CHECK_CALC_GLR],
[AT_CHECK_CALC([%glr-parser] $@)])
-
AT_CHECK_CALC_GLR()
AT_CHECK_CALC_GLR([%defines])
@@ -894,19 +889,15 @@ AT_CHECK_CALC_GLR([%define api.pure %define parse.error
verbose %debug %location
AT_CHECK_CALC_GLR([%no-lines %define api.pure %define parse.error verbose
%debug %locations %defines %define api.prefix {calc} %verbose %yacc
%parse-param {semantic_value *result}{int *count}{int *nerrs}])
-# ----------------------------- #
-# Simple LALR1 C++ Calculator. #
-# ----------------------------- #
+# ---------------------- #
+# LALR1 C++ Calculator. #
+# ---------------------- #
-AT_BANNER([[Simple LALR(1) C++ Calculator.]])
+AT_BANNER([[LALR(1) C++ Calculator.]])
# First let's try using %skeleton
AT_CHECK_CALC([%skeleton "lalr1.cc" %defines])
-# AT_CHECK_CALC_LALR1_CC([BISON-OPTIONS])
-# ---------------------------------------
-# Start a testing chunk which compiles 'calc' grammar with
-# the C++ skeleton, and performs several tests over the parser.
m4_define([AT_CHECK_CALC_LALR1_CC],
[AT_CHECK_CALC([%language "C++" $1], [$2])])
@@ -935,19 +926,15 @@ AT_CHECK_CALC_LALR1_CC([%no-lines %defines %locations
%define api.location.file
AT_CHECK_CALC_LALR1_CC([%locations %define parse.lac full %define parse.error
verbose])
-# --------------------------- #
-# Simple GLR C++ Calculator. #
-# --------------------------- #
+# -------------------- #
+# GLR C++ Calculator. #
+# -------------------- #
-AT_BANNER([[Simple GLR C++ Calculator.]])
+AT_BANNER([[GLR C++ Calculator.]])
# Again, we try also using %skeleton.
AT_CHECK_CALC([%skeleton "glr.cc"])
-# AT_CHECK_CALC_GLR_CC([BISON-OPTIONS])
-# -------------------------------------
-# Start a testing chunk which compiles 'calc' grammar with
-# the GLR C++ skeleton, and performs several tests over the parser.
m4_define([AT_CHECK_CALC_GLR_CC],
[AT_CHECK_CALC([%language "C++" %glr-parser] $@)])
@@ -968,19 +955,15 @@ AT_CHECK_CALC_GLR_CC([%locations %defines %define
parse.error verbose %debug %de
AT_CHECK_CALC_GLR_CC([%no-lines %locations %defines %define parse.error
verbose %debug %define api.prefix {calc} %verbose %yacc %parse-param
{semantic_value *result}{int *count}{int *nerrs}])
-# --------------------------- #
-# Simple LALR1 D Calculator. #
-# --------------------------- #
+# -------------------- #
+# LALR1 D Calculator. #
+# -------------------- #
-AT_BANNER([[Simple LALR(1) D Calculator.]])
+AT_BANNER([[LALR(1) D Calculator.]])
# First let's try using %skeleton
AT_CHECK_CALC([%skeleton "lalr1.d"])
-# AT_CHECK_CALC_LALR1_D([BISON-OPTIONS])
-# ---------------------------------------
-# Start a testing chunk which compiles 'calc' grammar with
-# the C++ skeleton, and performs several tests over the parser.
m4_define([AT_CHECK_CALC_LALR1_D],
[AT_CHECK_CALC([%language "D" $1], [$2])])
--
2.25.0
- [PATCH 0/9] Prepare Java for parse.error custom|detailed, Akim Demaille, 2020/02/02
- [PATCH 2/9] tests: comment changes,
Akim Demaille <=
- [PATCH 4/9] java: example: improve, Akim Demaille, 2020/02/02
- [PATCH 1/9] skeletons: add support for %code epilogue, Akim Demaille, 2020/02/02
- [PATCH 3/9] java: example: rely on autoboxing, Akim Demaille, 2020/02/02
- [PATCH 5/9] java: example: properly track the locations, Akim Demaille, 2020/02/02
- [PATCH 7/9] java: formatting changes, Akim Demaille, 2020/02/02
- [PATCH 8/9] java: add access to the number of errors, Akim Demaille, 2020/02/02
- [PATCH 6/9] java: avoid trailing white spaces, Akim Demaille, 2020/02/02
- [PATCH 9/9] java: use the same calc tests as the other skeletons, Akim Demaille, 2020/02/02