[BeginnerQuestion]Why I compile lex.yy.c failed?

Поиск
Список
Период
Сортировка
От Wen Yi
Тема [BeginnerQuestion]Why I compile lex.yy.c failed?
Дата
Msg-id TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответы Re: [BeginnerQuestion]Why I compile lex.yy.c failed?
Список pgsql-general
Hi community,
I am a beginner who are interested in database,when I do my study on the lex and yacc,I write a example.l like this:

%%
.\|n ECHO
%%

and then I generate a  lex.yy.c use lex
but when I compile this file,something wrong happend:

[beginnerc@bogon temp]$ flex '/home/beginnerc/work/temp/example.l'
[beginnerc@bogon temp]$ cc lex.yy.c -o first -ll
/home/beginnerc/work/temp/example.l: In function ‘yylex’:
lex.yy.c:619:28: error: expected ‘;’ before ‘break’
  619 | #ifndef YY_BREAK
      |                            ^    
/home/beginnerc/work/temp/example.l:3:2: note: in expansion of macro ‘YY_BREAK’
    3 | %%
      |  ^      
[beginnerc@bogon temp]$

Can some one give me some suggestion?
Thanks in advance!
Yours,
JingZhang.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Lahnov, Igor"
Дата:
Сообщение: RE: Streaming wal from primiry terminating
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BeginnerQuestion]Why I compile lex.yy.c failed?