Skip to content

Invalid GOTOPOINTS allowed. #82

@python-processing-unit

Description

@python-processing-unit

According to the specification section 3.7:

GOTOPOINT(n) MUST register a jump target identified by the runtime value n, where n MAY be either INT or STR. Negative integer gotopoint identifiers are invalid.

The implementation, however, allows GOTOPOINTs of any type, and allows negative INT GOTOPOINTs.

Prefix REPL. Enter statements, blank line to run buffer.
>>> GOTOPOINT(<>)
>>> GOTOPOINT([0b1])
>>> GOTOPOINT(LAMBDA INT: (){})
>>> GOTOPOINT(ASYNC{})
>>> GOTOPOINT(0b1.0)
>>> GOTOPOINT(-0b1)
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions