summaryrefslogtreecommitdiff
path: root/test cases/frameworks/8 flex/lexer.l
blob: 23a5f4869c6e9208746b749eeedc631ba8f33661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%{
#include <stdlib.h>
#include "parser.tab.h"

extern int yylex(void);
extern int yyerror(char *s);
%}

%option noyywrap nounput noinput

%%
("true"|"false")    {return BOOLEAN;}
. { yyerror("Invalid value"); }