Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modula-2 Case of the Reserved Word

0 views
Skip to first unread message

Anthon 'Amiga' Pang

unread,
Mar 2, 1990, 2:08:52 PM3/2/90
to
I really like Modula-2, and the environment on my Amiga is really wonderful,
but the greatest nit I have with the language is its need for reserved words
to be capitalized (eg IF, THEN, END, WHILE, MODULE, IMPLEMENTATION...).

Could someone respond with a summary of the proposed "standard" ?
I'm hoping keywords are accepted even in lower case. If not, does anyone
know of a good/reliable/fast M2 preprocessor that'll convert keywords that
appear in lower case to upper case ? Thanks in advance.

Tom Reid x4505

unread,
Mar 2, 1990, 4:30:56 PM3/2/90
to
>From: Anthon 'Amiga' Pang

I agree with you that upper case is is a bummer. My <previous> personal
style was lower case and I have had to adapt. I think you will find that
a preprocessor will be more trouble than its worth unless you are of the
habit of typing 1000 line programs in one sitting. Most environments are
interactive.

Unfortunately, you will have no relief in the new standard. It is another
case of a language forcing personal style. However, it won't be fixed
under the "it might break existing code" principle.

Tom.

Thomas F. Reid, Ph. D. (703)818-4505 (work)
Contel Technology Center (703)742-8720 (home)
15000 Conference Center Drive Net: re...@ctc.contel.com
P.O. Box 10814
Chantilly, Va. 22021-3808

rsutc

unread,
Mar 2, 1990, 5:32:00 PM3/2/90
to
In the proposed standard, case sensitivity is retained, as is the practice
of spelling reserved words and standard identifiers in upper case.

Rick Sutcliffe Associate Professor \ (89-90 only) Visitor
Computing Science & Mathematics \ School of Computing Science
Trinity Western University \ Simon Fraser University
7600 Glover Rd., \ Burnaby, B.C. Canada V5A 1S6
Langley B.C. Canada V3A 4R9
e-mail: Rick_Su...@cc.sfu.ca OR Compuserve 76475,3406
Chairman wg13 (Modula-2) Canada

Pete Davis

unread,
Mar 5, 1990, 7:43:22 AM3/5/90
to
I don't think a Modula-2 pre-processor would be too difficult at all. All
you would need is a very simple parser to check for reserved words and then
make the conversion. That couldn't take more than 10-15 minutes to write.
_Pete Davis

Barry.C...@durham.ac.uk

unread,
Mar 6, 1990, 9:03:53 AM3/6/90
to
There was also a program published in a reasonably early issue of
"Journal of Pascal, Ada and Modula-2" . It converted "appropriate"
identifiers from lower-case to upper-case. The program was called
UPCASE I think.
==
Barry Cornelius
==
Computer Science Group, School of Engineering and Applied Science,
University of Durham, Durham, DH1 3LE, England
JANET: Barry.C...@uk.ac.durham
Internet: Barry.Cornelius%durham...@cunyvm.cuny.edu
UUCP: ...ukc!cs.nott.ac.uk!bjc
BITNET/EARN: Barry.Cornelius%DUR...@AC.UK
Tel: Durham (091 or +44 91) 374 2638, Secretary: 374 2630, Fax: 374 3741

RCAP...@cc.utah.edu

unread,
Mar 7, 1990, 3:56:48 AM3/7/90
to
In article <emu-ar01.lg.1990...@uk.ac.dur.mts>, Barry.C...@DURHAM.AC.UK writes:
> There was also a program published in a reasonably early issue of
> "Journal of Pascal, Ada and Modula-2" . It converted "appropriate"
> identifiers from lower-case to upper-case. The program was called
> UPCASE I think.
> ==
Shouldn't it have been more appropriately named:

MixedUPCase?

Phil Johnson

unread,
Mar 19, 1990, 10:22:51 AM3/19/90
to
In article <1990Mar2.1...@undergrad.cs.ubc.ca> ap...@undergrad.cs.ubc.ca (Anthon 'Amiga' Pang) writes:
>I really like Modula-2, and the environment on my Amiga is really wonderful,
>
>Could someone respond with a summary of the proposed "standard" ?
>I'm hoping keywords are accepted even in lower case. If not, does anyone
>know of a good/reliable/fast M2 preprocessor that'll convert keywords that
>appear in lower case to upper case ? Thanks in advance.

The Benchmark Modula-2 development system for the Amiga includes a utility to
convert keyworks to uppercase.


--
Philip E. Johnson UUCP: usenet!ingr!phil
MY words, VOICE: (205) 730-8112
MY opinion!

0 new messages