[antlr-interest] Syntactic predicate not being generated
Olivier Dragon
dragonoe at mcmaster.ca
Sat Jul 30 05:44:45 PDT 2005
On Fri, Jul 29, 2005 at 11:54:37AM -0400, Olivier Dragon wrote:
> I have this problem where I put a syntactic predicate inside the lexer
> and no code is being generated for it. I get no warnings or errors (it's
> inside an alternative block with more than one). Here is the lexer rule:
I found that by increasing codeGenMakeSwitchThreshold to something
higher than the number of alternatives I had would generate proper code
with the syntactic predicate check. Before that I was using the default
value, that is not specifying one.
Is this a known bug with ANTLR?
Sincerely,
-Olivier
--
__-/| ? ? |\-__
__--/ / \ (^^) / \ \--__
_-/ / / /\ / ( ) /\ \ \ \-_
/ / / / / ( ^^ ~ \ \ \ \ \
/ Oli Dragon ( dragonoe at mcmaster.ca \
/ B.Eng. Sfwr ( ) \ \ \ \
/ / / /__--_ ( ) __--__\ \ \ \
| / / _/ \_ \_ \_ \ \ |
\/ / _/ \_ \_ \_ \ \/
\_/ / -\_\ \ \_/
\/ ) \/
*~
___--<***************>--___
[http://dragon.homelinux.org]
~~~--<***************>--~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20050730/c377e232/attachment.bin
More information about the antlr-interest
mailing list