mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
tests: comment changes
* tests/calc.at: Shorten titles and reduce redundancy.
This commit is contained in:
@@ -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])])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user