[antlr-interest] PLSQL parsing nondeterminism
Swapnil Kashikar
swapnil.kashikar at gmail.com
Wed Mar 22 00:00:27 PST 2006
Hi,
I am very new to antlr.
I was trying to parse PLSQL select statement with the following grammar and
got the following warning:
Can't figure out what alt 1 and alt 2 are and how to remove this
non-determinism.
Thanks,
SKashikar
--------------
warning: nondeterminism between alts 1 and 2 of block upon
k==1 CONNECT
k==2 BY
--------------
The grammar snippet is :
subquery :
"SELECT"
(distinct_all_or_unique)? select_list
from_clause
(where_clause)?
(hierarchical_query_clause)?
(group_by_clause)?
(having_clause)?
(subquery_clause)?
(order_by_clause)?
;
hierarchical_query_clause :
"CONNECT" "BY" connect_by_expression
;
connect_by_expression : expression
;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060322/bfdde0f9/attachment.html
More information about the antlr-interest
mailing list