[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Copying parser/lexer
From: |
David Kastrup |
Subject: |
Copying parser/lexer |
Date: |
Tue, 08 Nov 2011 11:02:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Hi,
when working on the embedded Scheme stuff I got a nasty surprise working
with cloned lexers/parsers.
They start out with the error flag of their source.
That's stupid, since it means that they can't complete successfully
without explicitly clearing their respective error flags.
I got hit by this since tests complained about every single #{ ... #}
expression when a version error in the main file set the error flag
right at the start of the run.
As we don't clone the parsers for fun (or continuation), I suggest
starting the clones with reset error state right in the copy
constructor.
If I don't encounter sufficient resistance, I'll likely push a change
like that to dev/staging tomorrow.
--
David Kastrup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Copying parser/lexer,
David Kastrup <=