you have my sympathies. Sloppy programs such as this language (if we may
call it that) are, fortunately, quite rare in the world of commercial
software. These days when CS students are taught lexical analysis and
the construction of context-free grammars as part of their standard
curriculum, and with the excellent compiler construction tools
available, it has become comparatively easy to write a small language
with a good parser and translator.
It is said that no one is totally useless - he may still serve as a bad
example. dbatch at least provides living proof that precedence rules are
not a necessity imposed on us by any divine fiat. They only make life
easier, as does any well thought-out intellectual structure.
Michael
Stephen Tavener wrote:
> I just thought you all might like to share my pain; one of the languages
> I work with on a daily basis is DBatch, a language with some
> similarities to basic.
>
> Unfortunately for my sanity, a number of operations are evaluated
> strictly left to right, regardless of precedence (so 5+2*7 is likely to
> evaluate as 49, A or B and C is (A or B) and C, not A or (B and C)).
> Parentheses are used liberally around these parts, as are intermediate
> variables.
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Math4u/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Math4u/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:Math4u-digest@yahoogroups.com
mailto:Math4u-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
Math4u-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:

No comments:
Post a Comment