Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-03

lax and Yacc

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alain Michaud

Hi,
I have just one quick question in order to understand better:

Does FPC use lex (or flex) and yacc ?

I just noticed that h2pas uses it and I was wondering if fpc works like that too!

Thanks

Alain

Florian Klaempfl
to Alain Michaud
Alain Michaud wrote 8 lines
Hi, I have just one quick question in order to understand better: Does FPC use lex (or flex) and yacc ? I just noticed that h2pas uses it and I was wondering if fpc works like that too!

No. Lex and yacc are too slow and too unflexible for production compilers.

Adriaan van Os
to Florian Klaempfl: No. Lex and yacc are too slow and too unflexible for production compilers.
Florian Klaempfl wrote 13 lines
Alain Michaud wrote: > Hi, > I have just one quick question in order to understand better: > > Does FPC use lex (or flex) and yacc ? > > > I just noticed that h2pas uses it and I was wondering if fpc works > like > that too! No. Lex and yacc are too slow and too unflexible for production compilers.

Even gcc C++ and C have moved to a handwritten parser recently.

Regards,

Adriaan van Os