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

Java/ #130

Open
StoneyJackson opened this issue Apr 30, 2024 · 4 comments
Open

Java/ #130

StoneyJackson opened this issue Apr 30, 2024 · 4 comments

Comments

@StoneyJackson
Copy link
Member

I propose the following changes related to the generated Java/ directory.

  1. Move the responsibility of cleaning up Java/ into plcc. plcc knows how to create it; so it best knows how to clean it.
  2. [BREAKING] Make cleanup of Java/ unconditional. This is the common case.
  3. [BREAKING] Don't allow the user to specify a different directory. All of the scripts (rep, parse, ...) require the directory to be Java/, and they do not take a parameter to specify the directory. The alternative is to add this parameter to these scripts making them more complicated and making the scripts harder to use.
@jashelio
Copy link
Collaborator

jashelio commented May 1, 2024 via email

@StoneyJackson
Copy link
Member Author

True... Alternatively, we could always require a target directory. That's what I advocated in #133 for the specification file. Maybe we should adopt The Zen of Python - PEP 20... then...

If we follow "Explicit is better than implicit," then we should require a path to the generated language system.

plccmk ./mylang.plcc ./mylang
scan ./mylang < hello.mylang
parse ./mylang < hello.mylang
rep ./mylang < hell.mylang

Worth considering.

@jashelio
Copy link
Collaborator

jashelio commented May 2, 2024 via email

@StoneyJackson
Copy link
Member Author

I agree with the original.

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

2 participants