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

GIL should have a sane syntax #236

Open
Tracked by #83
giltho opened this issue Mar 28, 2023 · 0 comments
Open
Tracked by #83

GIL should have a sane syntax #236

giltho opened this issue Mar 28, 2023 · 0 comments
Labels

Comments

@giltho
Copy link
Contributor

giltho commented Mar 28, 2023

The current syntax of GIL is a bit insane:

  • lists are captured by {{ }}
  • l-nth should should probably be replaced by an appropriate indexing operator
  • integers are postfixed with i, instead we should go with the ocaml-like notation of n+ is an integer n+\.n* is a float.
  • ...

We should:

  1. Choose a new, better syntax
  2. Have a script available that translates the old syntax into the new syntax
  3. Translate every GIL file into the new version syntax
  4. Get rid of the old syntax entirely, but keep a module available a parser and rewriter old-syntax -> new-syntax just in case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant