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 better main #143

Open
jamesaorson opened this issue May 17, 2022 · 1 comment
Open

Add better main #143

jamesaorson opened this issue May 17, 2022 · 1 comment
Assignees
Labels
blocked enhancement New feature or request

Comments

@jamesaorson
Copy link
Contributor

jamesaorson commented May 17, 2022

Introduce an optional main which provides the environment of the program parsed out and ready

type DayArgData struct is
  data: ptr<ccstring>
  length: size_t
end

type DayEnv struct is
  args: DayArgData
end

fun day (env: DayEnv) int do
  ? do work...
  0
end
@jamesaorson jamesaorson moved this to Backlog in Daybreak May 17, 2022
@jamesaorson jamesaorson added enhancement New feature or request blocked labels May 17, 2022
@jamesaorson jamesaorson self-assigned this May 17, 2022
@jamesaorson jamesaorson moved this from Backlog to Blocked in Daybreak May 17, 2022
@jamesaorson jamesaorson moved this from Blocked to Backlog in Daybreak Jul 14, 2022
@jamesaorson
Copy link
Contributor Author

Rather than write a new main, a system will be written and designed to plug in multiple mains which are executed via different CLI args from the user.

This system can then be used to create some starter improved mains added to the standard library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant