Hi,
I'm attaching my unit TextReader, it
- implements TTextReader class (that is able to read from any TStream
class using simple Readln and Eof methods) and
- initializes/finalizes some variables to treat standard input/output
like a TStream classes (or, only in case of standard input, like a
When I started to modify lexlib to work with streams instead of just
files (I have to parse stuff that could be on memory) I dicovered some
new issues:
* How can I use standard input/ouput with streams?
* Is there an easy way to do a ReadLn (or similar) with streams? The
idea is instead of rewritin
After some work I was able to translate my parser's grammar from
Coco/R to Lex/Yacc. It wasn't easy and I hate to loose the more
"functional" aspects of Coco/R, but at least my project can compile
both on Windows (with Delphi) and Linux (with fpc) (at least the
non-UI parts).
When I started to mod