Related articles |
---|
TP Lex/Yacc - Frustration. mch24@hermes.cam.ac.uk (Martin Harvey) (1998-05-12) |
From: | Martin Harvey <mch24@hermes.cam.ac.uk> |
Newsgroups: | comp.compilers |
Date: | 12 May 1998 22:22:52 -0400 |
Organization: | University of Cambridge |
Keywords: | lex, yacc, Pascal |
Hi folks.
Just a short note:
Problem.
1. TP Lex / Yacc still uses old text based file handling functions, so
it can't cope with binary files, or files with lines longer than 256
chars.
2. It's really not well suited for use under Delphi - it's all
procedural, and uses a lot of tectual inclusion.
3. It's an outdated port in general...
Solution.
1. Rewrite the code templates and auxiliary libraries in an OO fashion,
so that the generated lexers and parses are objects which take input
from and write output to stream objects, thus making binary file
handling possible.
This is what I intend to do. Are there any TP Lex/Yacc users out there
who would find such a rewrite useful?
Martin H.
--
***********************************************
Martin Harvey
Uni email: mch24@cam.ac.uk
Home email: mch24@harvey27.demon.co.uk
New Web pages at:
http://www.harvey27.demon.co.uk/mch24/
***********************************************
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.