This project is read-only.
1

Closed

expression broken

description

to recreate add a Tests\expression_04.cs:
 
$ cat Tests/expression_04.cs
(correctResponseIndex++.ToString())
 

parse gives:

Tests/expression_04.cs
/Users/keving/svnrepos/antlrcsharp/UnitTest/Tests/expression_04.cs
parser using rule -- expression:
line 1:25 missing RPAREN at '.'
Parsed 1 of 1 files. (100%)

parsing expression() finishes early on the "correctResponseIndex++" part. The C# spec looks like it would handle this just fine. I haven't found a fix for this, cs.g departs quite a bit from the C# spec I have in this area.
Closed Nov 5, 2010 at 5:51 PM by anbrad
Updated primary_expression_part

comments

anbrad wrote Nov 5, 2010 at 4:19 PM

Post increment/decrement need to be in primary_expression. I had trouble with this at one point, but I'll try and move these rules around.

wrote Nov 5, 2010 at 5:51 PM

wrote Feb 14, 2013 at 7:00 PM

wrote May 16, 2013 at 9:25 AM