X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox To: geda-user AT delorie DOT com Subject: Re: [geda-user] Translating SI notation to SPICE In-reply-to: References: <20121116030224 DOT 5c7750ee AT akka> <201211160225 DOT qAG2PrVD005630 AT envy DOT delorie DOT com> <20121116035513 DOT 14519 DOT qmail AT stuge DOT se> <201211160357 DOT qAG3vUXo017504 AT envy DOT delorie DOT com> <20121116041216 DOT 16057 DOT qmail AT stuge DOT se> <201211160428 DOT qAG4Sh3h018631 AT envy DOT delorie DOT com> <20121117163351 DOT 14988 DOT qmail AT stuge DOT se> <5C6FC5CD-A358-476D-A8CA-C9AF2E72A914 AT noqsi DOT com> <20121117185520 DOT 25698 DOT qmail AT stuge DOT se> <9C626D0F-7D63-4FBE-8D63-37A2FFAD96FE AT noqsi DOT com> <71EA2CF8-8F64-4A51-B7C4-5F26EE8F4088 AT noqsi DOT com> <20121119182107 DOT 98F08813BDB7 AT tur kos.aspodata.se> <4F02B9C0-5C7A-4C7B-A23C-C99285C4CFFB AT noqsi DOT com> <20121124171912 DOT D4F46813BDCB AT turkos DOT aspodata DOT se> <20121211080047 DOT 579C482204B7 AT turkos DOT aspodata DOT se> <20121211141724 DOT 0770382204BC AT turkos DOT aspodata DOT se> Comments: In-reply-to Evan Foss message dated "Tue, 11 Dec 2012 10:42:25 -0500." Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20121211164745.2571082204BF@turkos.aspodata.se> Date: Tue, 11 Dec 2012 17:47:45 +0100 (CET) From: karl AT aspodata DOT se (Karl Hammar) X-Virus-Scanned: ClamAV using ClamSMTP Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Evan Foss: > On Tue, Dec 11, 2012 at 9:17 AM, Karl Hammar wrote: > > Evan Foss: > >> On Tue, Dec 11, 2012 at 3:00 AM, Karl Hammar 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