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

Design unit system #2

Open
2 of 7 tasks
narrowtux opened this issue Aug 15, 2016 · 0 comments
Open
2 of 7 tasks

Design unit system #2

narrowtux opened this issue Aug 15, 2016 · 0 comments

Comments

@narrowtux
Copy link
Owner

narrowtux commented Aug 15, 2016

TODO

  • Registry for unit strings to their definitions
    • Possibility to use aliases (for example meter to m)
  • Prepare lexer and parser to parse unit expressions
    • m / s should be parsed as {:divide, {:unit, "m"}, {:unit, "s"}}
  • Add second parser-pass to map {:unit, binary} to a unit definition
  • Change eval/2 functions to support multiplication operations (/, *, ^) on amounts
  • Support SI prefixes (m, k, M, ...)
  • function to convert units
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