Skip to content

Could we make expression parsing more explicit on UCUM codes vs aliases #85

@stevegeek

Description

@stevegeek

See discussion/issues:

PRs:

Note that UCUM has a grammar definision, that seems inconsistent?

https://ucum.org/ucum


<simple-unit> | ::= | <ATOM-SYMBOL>\| <PREFIX-SYMBOL><ATOM-SYMBOL[metric]>

while https://ucum.org/docs/formal-grammar

simpleUnit :  prefix metricAtom // prefix is token from lexer
           |  metricAtom  
           |  nonMetricAtom // token from lexer
           |  DIGITS    // allow zero?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions