bison-patches
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]