History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANTLR-179
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Terence Parr
Reporter: Terence Parr
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ANTLR v3

missing attribute in combined grammar

Created: 18/Sep/07 01:20 PM   Updated: Sunday 03:31 PM
Component/s: ANTLR Core
Affects Version/s: 3.0.1
Fix Version/s: 3.1


 Description  « Hide
Jan-Willem van den Broek reports:

grammar TestPredicate;

a : v=vv '=' ( {$v.text.equals('v')}?=> 'c' | 'd');

vv : 'v';

Here is the error:

error(10): internal error: C:\Documents and Settings\jwbroek\My Documents\antlr_test\TestPredicate.g : java.util.NoSuchElementException: no such attribute: TREE_PARSER in template context [evalPredicate ruleLabelPropertyRef_text]
org.antlr.stringtemplate.StringTemplate.checkNullAttributeAgainstFormalArguments(StringTemplate.java:1290)
org.antlr.stringtemplate.StringTemplate.get(StringTemplate.java:814)


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 11/May/08 03:31 PM
Was evaluating pred template before inserting into output template.