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

Upgrade units-in-java filer parser to handle GNU Units's current file syntax #3

Open
buttercookie42 opened this issue Jan 10, 2024 · 0 comments
Milestone

Comments

@buttercookie42
Copy link
Owner

buttercookie42 commented Jan 10, 2024

GNU Units can now set arbitrary variables during parsing (either set externally, or a default value read from the units file) and then skip lines not just based on locale, but also those additional arbitrary variables.

This would be a step (hopefully maybe even the only step required) towards using a current unit definition file from GNU Units.

It seems the syntax for specifying functions also changes slightly, with a few more optional parameters, instead of only the function's dimensions.

And with plain unit definitions a preceding "+" suppresses the redefinition warning.

See https://www.gnu.org/software/units/manual/units.html#Database-Syntax

@buttercookie42 buttercookie42 changed the title Upgrade units-in-java filer parser to handle GNU Unit's current file syntax Upgrade units-in-java filer parser to handle GNU Units's current file syntax Jan 13, 2024
@buttercookie42 buttercookie42 added this to the 1.4 milestone Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant