lfortran icon indicating copy to clipboard operation
lfortran copied to clipboard

[SciPy]: Tokenize `ASSIGN TO`

Open Pranavchiku opened this issue 3 years ago • 3 comments

on executing lfortran --show-asr --implicit-typing ../scipy/scipy/special/cdflib/dinvr.f results in

tokenizer error: Expecting terminating symbol for subroutine
   --> /home/pranavchiku/scipy/scipy/special/cdflib/dinvr.f:100:7
    |
100 |       ASSIGN 10 TO i99999
    |       ^ 


Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that needs to be fixed).

Pranavchiku avatar Aug 27 '22 08:08 Pranavchiku

Similar to: #672

Smit-create avatar Aug 28 '22 06:08 Smit-create

@Smit-create Well, these issues aren't really alike. Enabling CONTINUE is catching the edge cases and then we're good; enabling ASSIGN TO turns out to be enabling another kind of GOTO while also implementing it in ASR :)

konradha avatar Aug 29 '22 12:08 konradha

@Smit-create FYI I enabled CONTINUE within a procedure's body; you might want to have a look at the PR. If there are more cases with CONTINUE please ping me :)

konradha avatar Sep 05 '22 16:09 konradha

#848

konradha avatar Oct 11 '22 15:10 konradha