Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-41

Logical && expressions are not currently handled properly by the parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • parser
    • None

    Description

      The && token in a logical expression seems to disappear, leaving half of the expression going through to the AST generator stuff.

      e.g.

      if (x > 1 && y < 2)

      results in this

      if (x > 1)

      If you look into ParserTest at the test testLogicalAndExpression() and look at the console output you'll see what I mean.

      Attachments

        Activity

          People

            bob Bob Paulin
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: