[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
using flex internals outside the scanner.l file
From: |
Henrik Sorensen |
Subject: |
using flex internals outside the scanner.l file |
Date: |
Wed, 3 Aug 2005 22:15:40 +0000 |
User-agent: |
KMail/1.8.1 |
Hi List,
In the PL/I project (pl1gcc.sourceforge.net), I have recently refactored the
flex scanner file. All the c functions have now been moved into a separate
library.
I had a problem with some of the functions since they use the YY_BUFFER_STATE
structure, and YY_BUFFER_STATE uses yy_buffer_state and yy_site_t.
I have created a separate header file where I copied the necessary pieces from
the generated lex.yy.c file.
Obviously this is not really portable between versions of flex.
Is there anyway to get flex to export the necessary definitions to a file ?
Are there any other way to do this ?
Thanks for your help
Henrik
- using flex internals outside the scanner.l file,
Henrik Sorensen <=