Skip to content

Parser fails to recognize comparison expressions #2

@rareyesdev

Description

@rareyesdev

I tried to use your project to build a syntax tree, but your CSharp4.java parser is not configured to do so. I used csParser.java directly and it seems to fail recognizing comparison expressions. It seems to be a problem in the grammar definition, that causes the parser to try to match a generic construction when it finds something like f = i < 1.
The error is: line 7:11 no viable alternative at input '1'

namespace ConsoleApplication1 { 
    public class TestFileTwo { 
        public void foo ( ) { 
            f = i <mismatched token: [@53,108:108='1',<36>,7:11], resync=< 1> ; 
        } 
    } 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions