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

Add Pythonic syntax #74

Open
rrthomas opened this issue Sep 3, 2024 · 0 comments
Open

Add Pythonic syntax #74

rrthomas opened this issue Sep 3, 2024 · 0 comments

Comments

@rrthomas
Copy link
Collaborator

rrthomas commented Sep 3, 2024

See https://github.com/sakekasi/python-in-ohm/ for how to do this sort of syntax in Ohm: basically, pre-parse the indents and turn them into otherwise invalid characters such as ⇒ and ⇐ to represent indent and dedent. Then parse these in the normal way.

Rename the two Ursa syntaxes indent and brace (with aliases python and c). If no explicit syntax is given on the command line, parse as brace first and then try as indent if that fails. Same in the REPL.

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

1 participant