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

Undescriptive error messages for lowercase control flow #23

Open
Swiddis opened this issue Jun 30, 2022 · 1 comment
Open

Undescriptive error messages for lowercase control flow #23

Swiddis opened this issue Jun 30, 2022 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Swiddis
Copy link
Contributor

Swiddis commented Jun 30, 2022

Issue description

When writing code which doesn't capitalize the control flow keywords (to below), the error message is very opaque.

Steps to reproduce the issue

Run the following:

pwease sum = 0
FOR i = 0 TO 5 THWEN
    FOR j = 0 to 3 THWEN
        pwease sum = sum + 1
    END
END
pwint(sum)

What's the expected result?

  • If we decide to ignore case on the keywords, then the code should output 15,
  • Or the code should yield an error message that at least points to the right area of the code.

What's the actual result?

  • The code yields
Owo, whats this? Invawid Syntax? Oh nyo! : Token cannot appear after previous tokens
File exwamples/nwest.pyowo, line 2


FOR i = 0 TO 5 THWEN
^^^
@virejdasani virejdasani added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 25, 2022
@Almas-Ali
Copy link

Hey, you can tryout this project https://github.com/radon-project/radon because this projects are not maintaining. We will move a language together. It's very exciting. We have implement class feature in our project. Also standard library and third party imports.

See you there.

@Swiddis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants