Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#45 Minor parser bugs regarding compound expr. and here-docs

v0.1.0
closed-works-for-me
nobody
Core (65)
5
2004-11-13
2004-03-12
Grega Bremec
No

A bug in the parser somehow causes parentheses to be
identified incorrectly if a division expression has
been broken across multiple lines and the division mark
has been (admittedly inadherent to good coding
guidelines, but we all make mistakes :)) positioned at
the beginning of the next line:

print("The result of the calculation (", $divider
/ $divisor, ") is invalid.\n");

Another minor bug in the parser causes the following
sub, while being syntactically correct, to appear as an
unterminated sub (i.e. sub that extends past the end of
the file):

sub example() {
print(<<EOF);
Lalala.
EOF
}

The print statement is parsed correctly and the sub
block is properly recognized if parentheses around the
here-doc marker are omitted.

Discussion

  • Grega Bremec
    Grega Bremec
    2004-03-12

    • summary: Minor parser bugs regarding prototypes and here-docs --> Minor parser bugs regarding compound expr. and here-docs
     
  • LeO
    LeO
    2004-11-13

    Logged In: YES
    user_id=703323

    I cannot reproduce these problems in the current version.
    Resp. do not understand what 'parentheses to be identified'
    means.

    If this problem still exists, please make further comments (and
    I'll reopen if necessary).

     
  • LeO
    LeO
    2004-11-13

    • status: open --> closed-works-for-me