From: pito <pi...@vo...> - 2010-08-08 20:09:05
|
The simplest solutiom might be to translate all uppercase letters (A-Z) into lowercase when input or exercised or compiled. That's it. So everything will be lowercase internally. You may use uppercase or lowercase words and it will work. No decisions or flags needed. You then may use sources with Uppercase or lowercase words and it will work. The only "issue" will be the visual representation via WORDS - you will see all lowercase. The formula for the translation is as I wrote - or someting like that.. (:-))). Pito ----- PŮVODNÍ ZPRÁVA ----- Od: "Matthias Trute" <mt...@we...> Komu: "pito" <pi...@vo...> Předmět: Re: [Amforth-devel] amforth - how to make him case Datum: 8.8.2010 - 20:16:59 > Hi Pito, > > > the beauty of the forth implementations like > > amforth or FF on AVR or > > > PIC is that you do not need other suits of > > various supporting tools, > > > just an editor (e.g. teletype or Palm Treo..). > > The ucontroller shall > > > contain everything you need in order to operate > > it.. This is what > > > most younger fans may attract to. > > ACK > > > So a switch between case sensitivness and case > > insensitivness woud > > > be a great feature, as I wrote thre are tons of > > various source codes > > > available. > > And you are typing tons of source code with your > pre treo? Sorry, > that gives you no points. Tons of source code can > be pre-processed > esp. when typing by hand. > > > I am not an avr asm freak so I am not going to > > dig into your code. > > > Moreover you might know the code by heart. There > > must be a simple > > > point you handle single char from input stream - > > when the char c is: > > > > > ((c >= 65) and (c <= 90)) then c = c + 32 ; > > or something like that.. > > you name it: something like that, but not that > one. Technically the > compare words uses two characters at the same > time. I still think about > possible solutions. (maybe a flag for every word > to signal: compare me > case insensitivly?). And which code page(s)? 7bit > ASCII only probably... > > Matthias > > |