Skip to content

Error on addition of new line in code #83

@PaulAjii

Description

@PaulAjii

Describe the bug
I was trying out some codes and then ran into an error at runtime when I use a newline. I mean, I cannot have all my code on a single line, so when I write my code on multi lines, I get an error like: There is an error at line x near column y in file xyz.yl. But when I remove all the newlines, it runs. I installed yorlang globally using npm. It runs the first line and gives an error for the remaining lines.

To Reproduce
Steps to reproduce the behavior:

  1. Write some codes having different statements or expressions on multilines
  2. Run the file using yorl file_name.yl
  3. Await the response
  4. See error

Expected behavior
I expected my code to run and not give an error. It should treat newline character as newline character and run my code.

Screenshots
If applicable, add screenshots to help explain your problem.

Code Example:
Code Example

Error:
Error Image

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]142.0.7444.176 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] Tecno Spark 10
  • OS: [e.g. iOS8.1] Android 12
  • Browser [e.g. stock browser, safari] Chrome
  • Version [e.g. 22] 142.0.7444.171

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions