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

Improved syntax #3

Open
4 tasks
Tracked by #1
justinrubek opened this issue May 14, 2023 · 1 comment
Open
4 tasks
Tracked by #1

Improved syntax #3

justinrubek opened this issue May 14, 2023 · 1 comment

Comments

@justinrubek
Copy link
Owner

justinrubek commented May 14, 2023

There is room for tweaking the existing syntax. Currently the syntax is inspired by a mix of languages, including predecessors like MScript and unrelated languages like Rust. The language has been designed to be fairly easy to parse and not have many complicated language features beyond what lalrpop makes easy.

goals

  • asm! construct
  • comments (//, /**/)
  • IC constants (nan, pi, pinf, ninf, etc)
  • Object types (GasType.Oxygen, etc)
@justinrubek justinrubek mentioned this issue May 14, 2023
5 tasks
@justinrubek
Copy link
Owner Author

I think it may be important for longevity and expressiveness to include a sort of inline assembly syntax such that the user can take direct control similar to rust's asm macro.

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