From: Paul Eggert Date: Wed, 14 May 2003 19:26:52 +0000 (+0000) Subject: (Torturing the Scanner): Add tests for ";|" in a grammar. X-Git-Tag: BISON-2_0~307 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/087b9fdf039c3cdf886eb379c9794ca27e835420 (Torturing the Scanner): Add tests for ";|" in a grammar. --- diff --git a/tests/input.at b/tests/input.at index a1da8f69..935e74ca 100644 --- a/tests/input.at +++ b/tests/input.at @@ -1,4 +1,4 @@ -# Checking the output filenames. -*- Autotest -*- +# Checking the Bison scanner. -*- Autotest -*- # Copyright (C) 2002, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -171,7 +171,7 @@ static int yylex (void); %% /* Exercise M4 quoting: '@:>@@:>@', @<:@, 1. */ -exp: '@<:@' '\1' two '$' '@' '{' oline output +exp: '@<:@' '\1' two '$' '@' '{' oline output.or.oline.opt { /* Exercise quotes in braces. */ char tmp[] = "@<:@%c@:>@,\n"; @@ -181,6 +181,7 @@ exp: '@<:@' '\1' two '$' '@' '{' oline output two: '\x000000000000000000000000000000000000000000000000000000000000000000002'; oline: '@' 'o' 'l' 'i' 'n' 'e' '@' '_' '_' 'o' 'l' 'i' 'n' 'e' '_' '_'; +output.or.oline.opt: ;|oline;;|output;;; output: '#' 'o' 'u' 't' 'p' 'u' 't' ' '; %% /* Exercise M4 quoting: '@:>@@:>@', @<:@, 2. */