Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser fails on comments without preceding code #350

Closed
radeusgd opened this issue Dec 17, 2018 · 0 comments
Closed

Parser fails on comments without preceding code #350

radeusgd opened this issue Dec 17, 2018 · 0 comments
Labels
d-hard Difficulty: significant prior knowledge required p-high Should be completed in the next sprint

Comments

@radeusgd
Copy link
Member

radeusgd commented Dec 17, 2018

General Summary

Parsing error is encountered with comments that don't have any code preceding them on the same line.

Steps to Reproduce

  1. Create a file TstComment.luna with following content
def main:
    # Test
    print "a"
    0
  1. Execute luna run --target TstComment.luna

Expected Result

Program should print "a" and finish cleanly.

Actual Result

The program fails to run with the following error:

Running in interpreted mode.
Exception "Unexpected (report this as a bug): UniTermDocumented (Documented (SmallVector (Struct (Ptr 0x00007f440065dfc4))) (Component 0x00007f443c19b8b0))"

Luna Version

luna (linux-x86_64) (ghc-8.4) [master@1f5f7194f371ea17df3c2f56f1c85a8eb6f3a320, Clean, 967 commits, latest on Mon Dec 10 09:33:03 2018 +0100]
@radeusgd radeusgd changed the title Parsing comments Parser fails on comments without preceding code Dec 17, 2018
@iamrecursion iamrecursion added T - Bug d-hard Difficulty: significant prior knowledge required p-high Should be completed in the next sprint labels Feb 25, 2019
@joenash joenash closed this as completed Jun 23, 2020
iamrecursion pushed a commit that referenced this issue Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d-hard Difficulty: significant prior knowledge required p-high Should be completed in the next sprint
Projects
None yet
Development

No branches or pull requests

3 participants