virejdasani / pythOwO

an UwU programming language
https://youtu.be/czZmkh7CY6M
MIT License
844 stars 47 forks source link

Undescriptive error messages for lowercase control flow #23

Open Swiddis opened 2 years ago

Swiddis commented 2 years ago

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?

What's the actual result?

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
^^^
Almas-Ali commented 1 year ago

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