DATA statement is not supported (Hollerith string)
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 173
Description
Original issue: https://gitlab.com/lfortran/lfortran/-/issues/164
I have tried to write some legacy code using DATA statement.
REAL :: A
DATA A /8HTESTTEST/
PRINT "(A)", A
I have expected to get the following output:
TESTTEST
But, unfortunately, I got the following output:
Syntax Error:2:0: mismatched input 'DATA' expecting {<EOF>, ';', NEWLINE}
DATA A /8HTESTTEST/
^
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Start by reproducing the shown DATA statement with the Hollerith string and tracing where parsing rejects DATA. Done means the example parses and produces TESTTEST as shown, with coverage for this legacy form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100