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

Newline is required to mark eof? #169

Open
AkshayIyer12 opened this issue Sep 19, 2017 · 2 comments
Open

Newline is required to mark eof? #169

AkshayIyer12 opened this issue Sep 19, 2017 · 2 comments

Comments

@AkshayIyer12
Copy link

Sometimes it happened that I didn't put a newline at end and the program worked but sometimes it showed some error.

@iAmMrinal0
Copy link
Member

Newline is required. Your editor should have added a newline when it worked. If you think it is working at random times, do share the code snippet and will try to help you.

@AkshayIyer12
Copy link
Author

a = if 3 > 2
       then true
       else false

b = if (98 < 25)
       then true
       else false

c = if 145 >= 145
       then 1 + 2
       else 3 + 4

d = if 9 > 9 && 10 - 4 > 0
       then true
       else false

The above code doesn't have any newline and it works.
Checked on emacs and vi as well as in sublime of any newline at eof.
There wasn't any newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants