Mail Archives: geda-user/2012/12/11/11:49:09
Evan Foss:
> On Tue, Dec 11, 2012 at 9:17 AM, Karl Hammar <karl AT aspodata DOT se> wrote:
> > Evan Foss:
> >> On Tue, Dec 11, 2012 at 3:00 AM, Karl Hammar <karl AT aspodata DOT se> wrote:
> > ...
> >> > Why not write it as an engineer/scientist would do it?
> >> > E.g. 10 Hz, 10Hz, 10 1/s, 15 A/V, 25 m/s2, 2e-4mmol, 3 km/ms, 3 V/As ...
> >> >
> >> > It cannot be that hard to parse that, something like:
> >> >
> >> > value : number dimension
> >> > dimension : tdimension | tdimension "/" tdimension
> >> > tdimension : "" | "1" | prefix unit | tdimension sep tdimension |
> >> > tdimension exponent | "(" tdimension ")" exponent
> >> > sep : " " | "*"
> What if someone actually wants to write km/s as in kilo meters per second?
Yes, I don't see any problem with that. I consists of "km" "/" and "s",
where "km" consists of the prefix "k" and the unit "m". It is legal
accordig to the rules-to-be above. What problem do you see with it ?
BTW, it doesn't matter much what you and I thinks about this. The one
who writes the parser usually decides. Are you volunteering?
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -