question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parser error when closing parenthesis without space

See original GitHub issue

It’s easier to see the code than describe the error:

REPORT zprogram.

CLASS lcl_foo DEFINITION.
  PUBLIC SECTION.
    METHODS constructor
      IMPORTING
        i_flight TYPE sflight.
ENDCLASS.

CLASS lcl_foo IMPLEMENTATION.
  METHOD constructor.

  ENDMETHOD.
ENDCLASS.

CLASS lcl_bar DEFINITION.
  PUBLIC SECTION.
    TYPES: BEGIN OF ty_foo,
             foo TYPE REF TO lcl_foo,
           END OF ty_foo.
    METHODS bar.
ENDCLASS.
CLASS lcl_bar IMPLEMENTATION.
  METHOD bar.
    DATA foos TYPE TABLE OF REF TO lcl_foo.
    DATA flight TYPE sflight.

    " '456' ) ) = correct
    APPEND NEW lcl_foo( i_flight = VALUE #( carrid = 'AA' connid = '456' ) ) TO foos.
    " '456') ) = parser error, altough it compiles
    APPEND NEW lcl_foo( i_flight = VALUE #( carrid = 'AA' connid = '456') ) TO foos.

  ENDMETHOD.
ENDCLASS.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
larshpcommented, Dec 12, 2017

thanks, think this is similar to #140

issue is something that needs to be fixed in the lexer, as far as I remember

0reactions
larshpcommented, Oct 31, 2018

closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting a parse error on the closing bracket in Haskell?
When compiling this, I get " parse error on input `}' " . I have no idea why. function · parsing · haskell...
Read more >
Explicit support for matched parentheses, including ... - GitHub
We don't think of parentheses as matched, but we provide a more convenient way to handle whitespace. ... which does a deep copy...
Read more >
IMS 15 - IMS messages - BPE0003E - IBM
AN EXPECTED RIGHT PARENTHESIS WAS NOT FOUND. The parser did not find the closing parenthesis in the input data to match an opening...
Read more >
Formula Parse Errors In Google Sheets And How To Fix Them
This formula parse error typically occurs when your formula is expecting a certain data type as an input but receives the wrong type,...
Read more >
vue/no-parsing-error
This rule tries to parse directives/mustaches in <template> by the parser which parses <script> . Then reports syntax errors if exist. 1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found