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

Cleanup Parser #2

Open
10 tasks
camdenorrb opened this issue May 29, 2022 · 0 comments · May be fixed by #3
Open
10 tasks

Cleanup Parser #2

camdenorrb opened this issue May 29, 2022 · 0 comments · May be fixed by #3
Assignees
Labels
enhancement New feature or request

Comments

@camdenorrb
Copy link
Owner

camdenorrb commented May 29, 2022

The parser is currently over complicated, there must be ways to simplify it

Goals:

  • Remove Expression
  • Remove DotChain
  • Remove Type and Typed?
  • Remove typed based tokens (Example: F32, F64)
  • Use nullable rather than inner data classes (Example: Parameter)
  • Use expectations to generate the AST in a simple way
  • Compare current AST design to other languages https://astexplorer.net/ and Odin
  • Move math functions out of AST ( minus(number: Number), pow(number: Number), etc )
  • Automatically generate Parser from AST classes lazily?
  • Make a new repo for common things that can used across support for other languages
@camdenorrb camdenorrb added the enhancement New feature or request label May 29, 2022
@camdenorrb camdenorrb self-assigned this May 29, 2022
@camdenorrb camdenorrb linked a pull request May 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant