[fpc-pascal] Customizing tply
Agustin Barto
abarto at gmail.com
Fri Dec 10 15:53:40 CET 2004
I integrated the generated parser and libs with the old code and now I
get a lot of run-time errors. I traced some of them to lexlib's
assigns of the default input and ouput so I commented out those (It's
a GUI app anyway). But then I started to get access violations. What
puzzles me is that my console based test-application worked just fine.
Right now I'm still using Delphi, so it's ok if you decide not to answer this.
I traced the error to this piece of the generated code:
if (yyd[yystate]=0) and (yychar=-1) then
(* get next symbol *)
begin
==> yychar := yylex; if yychar<0 then yychar := 0; <==
end;
btw, the problem is not StreamIO, I did some extensive testing of it
and it worked fine. Besides, it doesn't seem to be an I/O related
problem, cause the parser gets to execute the action of the first
token.
More information about the fpc-pascal
mailing list