uwol / proleap-vb6-parser

ProLeap ANTLR4-based parser for Visual Basic 6.0
MIT License
79 stars 26 forks source link

Fix Not operator rules. #14

Closed fossamagna closed 7 years ago

fossamagna commented 7 years ago

When I used Not operator and parenthesis at same time, Not operator is evaluated Not procedure call. For example:

MyCheck = Not A > B    ' No problem.
MyCheck = Not(A > B)   ' Evaluated as `Not` procedure call.

I fixed antlr rules file to evaluate as Not operator when use Not operator and parenthesis at same time. And I added test case for Not operator.

uwol commented 7 years ago

Thanks for your contributions!

I merged your fix and deployed it as artifact

<dependency>
    <groupId>io.github.uwol</groupId>
    <artifactId>vb6parser</artifactId>
    <version>2.1.0-SNAPSHOT</version>
</dependency>

to the ProLeap repo

<repositories>
    <repository>
        <id>maven.proleap.io</id>
        <url>http://maven.proleap.io</url>
    </repository>
</repositories>