Skip to content

Planned code cleanups #12

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

Open
3 of 6 tasks
alastairreid opened this issue Dec 30, 2024 · 0 comments
Open
3 of 6 tasks

Planned code cleanups #12

alastairreid opened this issue Dec 30, 2024 · 0 comments

Comments

@alastairreid
Copy link

alastairreid commented Dec 30, 2024

ASLi is a work in progress. We are actively extending it, improving testing and cleaning up the code.
Some of the planned cleanups are

  • Combine the representations of function return ('Stmt_FunReturn') and procedure return ('Stmt_ProcReturn') into a single node
  • Drop the _Cond suffix from s_elsif and e_elsif constructors (maybe do a general cleanup of the whole AST naming scheme?)
  • Consider changing 'S_If' to 'S_if (s_elsif list) stmts' - treating the initial if more uniformly
  • Combine the representations of local variable declarations ('Stmt_VarDecl', 'Stmt_ConstDecl', 'Stmt_VarDeclsNoInit') into a single node
  • Consider combining the representation of configuration variables ('Decl_Config'), global variables ('Decl_Var') and global constants ('Decl_Const')
  • Consider merging the representation of tuples and records
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