summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-01 18:23:34 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-02 11:28:45 +0100
commitc5b215b5e6a8272e71ee79225ed0ea953f773652 (patch)
tree4a81ee18becfa25e7e8dffa7d94ccdac2a49c2ad /tests
parent0774b2c6e391d5428c2aae0c735933432ce74a3b (diff)
downloadbison-c5b215b5e6a8272e71ee79225ed0ea953f773652.tar.gz
tests: comment changes
* tests/calc.at: Shorten titles and reduce redundancy.
Diffstat (limited to 'tests')
-rw-r--r--tests/calc.at57
1 files 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])])