pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wen Yi <chuxuec@outlook.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: [BeginnerQuestion]Why I compile lex.yy.c failed?
Date: Fri, 30 Sep 2022 08:42:46 +0000
Message-ID: <TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>
Permalink:  ../TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: chuxuec@outlook.com
  Subject: Re: [BeginnerQuestion]Why I compile lex.yy.c failed?
  In-Reply-To: <TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>
  References: <TYAP286MB06368D99921B88BA8E957A48A9569@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox