1%{
2int yylex(void);
3static void yyerror(const char *);
4%}
5
6%token . '\777'
7
8%%
9S: error
10%%
11
12#include <stdio.h>
13
14int
15main(void)
16{
17    printf("yyparse() = %d\n", yyparse());
18    return 0;
19}
20
21int
22yylex(void)
23{
24    return -1;
25}
26
27static void
28yyerror(const char* s)
29{
30    printf("%s\n", s);
31}
32