[antlr-interest] LINQ grammar ( as part of C# 3.0 )
Yury Serdyuk
Yury at serdyuk.botik.ru
Mon Jun 2 09:03:13 PDT 2008
Hi !
Does any have an (unambiguous) grammar for LINQ ?
Unfortunately, it's standard representation is ambiguous for ANTLR:
generalExpression : "dummy" | queryBody;
queryBody : selectClause (intoClause)? ;
selectClause : "select" generalExpression;
intoClause : "into" queryBody;
Linq.g:16:17: warning:nondeterminism between alts 1 and 2 of block upon
Linq.g:16:17: k==1:"into"
Linq.g:16:17: k==2:"select"
Is it possible to repair it somehow ?
Thanks.
Yury
More information about the antlr-interest
mailing list