[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-dev
Subject: [antlr-dev] change in rule descriptor
From: parrt () cs ! usfca ! edu (Terence Parr)
Date: 2005-12-21 15:41:14
Message-ID: CA6872F9-729A-410E-86B5-68091147365D () cs ! usfca ! edu
[Download RAW message or body]
I have changed Rule.java a bit so it has a getHasSingleReturnValue
method as checking result of getSingleValueReturnType or whatever was
not the proper way to see if there was a single return value. For
example, now I do this:
<if(ruleDescriptor.hasSingleReturnValue)>
<ruleDescriptor.singleValueReturnType>
<else>
...
This fixes the bug that you couldn't have return values with
templates...added unit test. I assume it was broken for AST + return
values too, but my unit test passes.
Ter
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic