Skip to content

(Feature Request) Enable the use of shebangs #2

@eliminmax

Description

@eliminmax

On Unix and Unix-like systems (such as macOS and Linux), beginning a script with #! followed by a path to an interpreter and arguments tells the system to use that interpreter to run the script - that's why, as an example, many python programs start with the line #!/usr/bin/env python.

The simplest way to implement this is to allow comments to start with # in addition to //.

I was able to get this working with only minor additions to src/lexer.rs - pull request will follow shortly.

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