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

feat: build src/plcc/scanner/main.py #11

Open
StoneyJackson opened this issue Feb 2, 2025 · 0 comments · May be fixed by #31
Open

feat: build src/plcc/scanner/main.py #11

StoneyJackson opened this issue Feb 2, 2025 · 0 comments · May be fixed by #31
Assignees

Comments

@StoneyJackson
Copy link
Member

StoneyJackson commented Feb 2, 2025

How Main is used...

main = Main(Scanner, Source)
main.run(sys.stdin, sys.stdout, sys.stderr, sys.argv)

Main will use docopts-ng to process command-line arguments and then build/configure the rest of the system (using the passed constructors for Scanner and Source) and then run the system.

The reason Scanner, Source, sys.stdin, etc are passed to Main is so that we can isolate Main's logic from the rest of the system during testing.

@StoneyJackson StoneyJackson transferred this issue from ourPLCC/plcc-reorg Feb 6, 2025
@StoneyJackson StoneyJackson moved this from Backlog to Ready in plcc-ng Feb 6, 2025
@michaelBanerjee michaelBanerjee self-assigned this Feb 11, 2025
@StoneyJackson StoneyJackson moved this from Ready to Backlog in plcc-ng Feb 11, 2025
@StoneyJackson StoneyJackson moved this from Backlog to Ready in plcc-ng Feb 11, 2025
@michaelBanerjee michaelBanerjee linked a pull request Feb 13, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

Successfully merging a pull request may close this issue.

2 participants