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

parser to handle ; and newlines better which could help reduce ambiguity

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-2
    • lexer, parser
    • None

    Description

      The following should barf

      x = 1 y = 2

      we should enforce ; to separate statements on 1 line. e.g.

      x = 1; y = 2

      also using ; or newline as a separator will help us make field declarations clear

      class Foo

      { int x; y }

      or

      class Foo {
      int x
      y
      }

      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: