[FAQ] Parse/Syntax error, unexpected $ or $end

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Janwillem Borleffs

    [FAQ] Parse/Syntax error, unexpected $ or $end

    Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing
    this?
    A: This is caused when an expression is started with an opening brace, but
    the closing brace is omitted.

    Examples:

    if ($condition) {
    ....
    // No closing brace; the error is thrown

    function foo () {
    ....
    // No closing brace; the error is thrown



  • Janwillem Borleffs

    #2
    Re: [FAQ] Parse/Syntax error, unexpected $ or $end

    Grammar revision:

    Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing
    this?
    A: This is caused by an expression which is defined with an opening brace,
    while
    the closing brace is omitted.

    Examples:

    if ($condition) {
    ....
    // No closing brace; the error is thrown

    function foo () {
    ....
    // No closing brace; the error is thrown



    Comment

    Working...