dcsimg
very simple grammar but gives FailedPredicateException WHY?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   deniz_toprak
Posted On:   Monday, December 3, 2007 04:04 AM

my sample grammar is:

grammar g;

run : drive[true]
;

drive[boolean isA]

: {$isA}? a

| {!$isA}? b
;

a : A
;

b : B
;

A : 'A'
;

B : 'B'
;

I interpret this grammar with A input it gives FailedPredicateException but in debug mode it matches A truly.Why??

About | Sitemap | Contact