The following is a tutorial introduction to
the mal language, which is a derivative of C language
intended for malayALi
programmers.
A sample mal program
which prints enthokkeyund~
ASAnE 10 times,
is also given at
the end. An executable of the
mal compiler for DEC, SUN, PC and MAC -platforms would be
shortly made available for free by anonymous ftp.
We assume fairly decent familiarity with C language
to learn mal language. Note that a real mal source program
written by a true mallu should always
have the extension .mal.
while(<expr>) do <stmt_block>
is replaced by
(<expr>) pachchakkaLLam
Akum vare AvaRtthikkuka <stmt_block> .
#uLppedutthuka
<filename> #ennuvechchAl
<pre_processor_const> <expr>
For example
#ennuvechchAl
noNa
pachchakkaLLam
#ennuvechchAl
nEr~
nagnasatthyam
would make things a lot more easier.
For example, instead of thudang~, thudangikkO -also works. Similarly instead of niRth~, which sounds a bit abrupt we can use niRutthadE or even niRutthikkE which would stop gently.
For the usual
Segmentation fault-core dumped
I got something like
ninte vAyil maNNidu.
A simple type error evoked the following response
bha!, kazhuvErda mOnE!,
evide nOkkiyadA program cheyyunnethu?
thEnga, mAnga, kutta,
vatti, chatti, kalam.
As of now, there is no restriction on this. (Of course,
reserved words cannot be used). This means
you can use any names, even
amma, appan, appAppan, ammAvan
etc. But please don't use bad words
or words with double meaning. mal compiler is smart enough to
recognize them.
vAyikkuka(<format>,
<variable_list>);
ezhuthuka(<format>,
<expression_list>);
We are working on improved versions of the
language. Our ultimate aim is to create at least three versions
of the mal language, one for
thiruvananthapuram area, one for
thRissUR area and one for
kozhikkOd~
area.
The differences will be only cosmetic. For example,
the kozhikkOd~
version will have error messages which begin
with - nte RabbE and the
I/O functions
vAyikkuka and
ezhuthukawill be replaced by
bAyikkuga and
eythuga respectively.
A sAmAnam version,
(with object oriented support)
is also under preparation. This is, of course, going to be
called mal++.
We share a vision, a dream, -mal language being
used by mallu-s all over the world and a programming culture
which reeks of mallu flavor. We have to make that
dream come true. shouldn't we?
/***************************************************/ /* 'enthokkeyund~ ASAnE?' -ennu patthu pRavaShyam */ /* ezhuthunna */ /* oru mal program. */ /* ezhuthiyath~ - Koshy George */ /* thIyathi - makaram,11, 1183 */ /*-------------------------------------------------*/ #uLppedutthuka /pRadhAna_inam( ) /*equivalent to main()*/ { pURNasankhya thEnga; /*pURNasankhya is equivalent to int, bhinnasankhya is equivalent to float*/ thEngA = 0; (thEngA < 10) pachchakkaLLam Akumvare AvaRtthikkuka { ezhuthuka ("%s\n", "enthokkeyund~ ASAnE?"); thEngA++; } } /***************************************************/
<(o)>