(Torturing the Scanner): Add tests for ";|" in a grammar.

This commit is contained in:
Paul Eggert
2003-05-14 19:26:52 +00:00
parent 8d0a98bb50
commit 087b9fdf03

View File

@@ -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. */