A. C. Kumbharkhane. N. N. Karade. G. S. Yelne. S. I. Patil. Editing and Printing.
Swami Ramanand Teerth Marathwada University, Nanded-431 606.
-~~-. -
•••. .e ••. _
-,, __
Vol. 1 Dec. 2007
Research Journal of Swami Ramanand Teerth Marathwada University,Nanded
Swami Ramanand Teerth Marathwada University, Nanded - 431 606
Research Journal of S. R. T. M. University
Dr. S. 8. Nimse Hon'ble Vice Chancellor,
-
S. R. T. M. University, Nanded
Associate Editor: Rajesh N. Gacche
E~~.tor: Ajay S. Chaudhari
EditQ'~oard D. B. Yedekar
K. M. Kulkarni D. B. Panaskar B. R. Suryawanshi Shailaja Wadikar V. R. Gunale M. M. Shikare
A. C. Kumbharkhane N. N. Karade G. S. Yelne S. I. Patil
Editing and Printing Swami Ramanand
Teerth Marathwada
University, Nanded-431
606
Note: Papers published in Research Journal of S. R. T. M. University are deemed to reflect the individual view of the authors and not the views ofS.R. T. M. University.
Research Iournal
EX-COG
of S.R.T.ll. Universi.,
EXPRESSION CODE GENERATOR: A GENERATIVE PROGRA.!\:{MING APPROACH R. Idate.'
Sonali
of Computer
'Department Software
and Dipuk J..,laL'
and IT. Bharau
Vidvupe eth Llli\cr";I!\,
of Eng iueeriug , Puuc-J
College lSellior
Suhas H. Pari:
I J 0-+:1 IBM India Global Services Pvt LtJ. TPO.
Engineer.
Kalyaninagur.
Near DOll Bosku
E-mail:
Sehoul.
PUlle
[email protected]
Abstract Ex-Cog (Expression-Code Generator) is a flexible, generic code generator for java and other programming languages. A Ex -COG user can deft ne the mathematical functions by formulating _them usin~ the m.built functions of Ex-COG Altemarively, the user can use the defined formulas in the fonn of images. Thus Ex -COG wi U use the formula, generate the-code .inm,e r~qtlfr~~language~ ",!::
-'.:._"';;~':""'-: ,~";;_i.....'':'"
as
-v
"""'-':~.
,
and validates the same for user inputs. User can- use »i
~
..
:.
,-:.,.
this code plug-inor ts a .snippet as per the requirement. Ja va'S~vfug·.iand~XMI;;{~gilse~Ft&'developi thesy stem,
Technology such as JAVACC,
. ~.",-~~~~~~.)~'~~5,;~ "~.::~~~"·~~~:~?~~~~~~~~':"~f.J~';'·:_~~?~:SCi:i'i~~~~ 'J ,>,
",";
,"
~ '_
;"
INTRODUCTION The
fundamental
contribution
of high-
",'
clear
idea of how code should be structured.
they
can
sti ll tind
leve I languages
to progranuning
productivity
technique
was the ability
of their compilers
to transform
the mathemuucu]
a compact
representation
computation
of a mathematical
(i.e .. all arithmetic
expressed in a mature mathematics)
interrelated
programmer
a significant
because the mathematical already
series of assembly
producti
vitv. quality.
software
development
expression
all such abstractions
produces
composue problem:
structures.
And
that compose
many
when
computer-readable
developers metadata
ri Ie
parauigm
L.1I11ilies rather
systems
nunortunt
geuerutiou
recurring
Generative
and a
Another
munu al search, UHlIr,lilc.-llb
(II
of needed
systems
from
naraJiglll adaptut
with
seeks
shift is iun, aill:
tlIe autumuuc
components
to
ill
ruun single
UII
and comnoueut-based
en g iue eri ug
!O
shift
eacl! time. This ItclLlires thinkuu;
re1111S of system
assemhi;
wgetheL!
to process
and production
One important
to replace
ill expressions
have
compoIlelltry
co IIIponen try rather than "reinventing
the wheel"
domain
in
thanks to the deployment
implied here is to build software
or
111
the
and time-to-market
standard
are extenJed,
such operutious
prograuuniug
is to increase
a non-
to compound
and operands
automation
It.
programming
every
iteration
the ideal use of such abstract,
specific operators Even
the operands
because
of both stundurd
is that are
Thus,
(ix.,
the
of work
amount
atomic, extended computation recursion)
saves
composite.
inherently
operation
eilgilleerillg
the druJge
and tweaking
The goal of generative software
i n s truc tio n s. This
lallguage
to generative
rile code fllr
to avoid
writing
but expansive
into an equivalent
and complexly
Relevance
expression
ill need of a
generare
formula
work of repeutedly
hOITL)weJ from
notation
themselves
to automatically
iure g rate
demand. software U01l1alL
Research Journal oj S. R.1:M. University evaluution of mathematical
: ·;c:.,iCCrlil~ ~lpr)IUUciIC' compo ue nr-based . 'Jlll·~!CiICS.uud ~C:lleratl\'t: approaches." ~cllc:rJtl\'L' rlru~r:tlllllling is ~1 technique ':I,I! ,hIJrC:SSeStill:' prt)hklil. Using geller~lli\'e
O'er Jpplicatiol1
easily.
cxrre.~sioll to itjsi
it should
support
7
Pu re m he s is ). 10 10- i5 users defined
o pe ru to rs (including mathematical functions,
·'l'!'.::'I'.II!lllling tecl uuque s. ~lIIy developer can _, l! \ L' uuuhemaucal prohlems ill fami lies. rather
variables and provides complete error handliug
:il:lIllildi\idually.
suvillg rime and coding effort.
generation
TillS :lnick describes the se techniques using :-:\·COG and huilds a sample template-driven
application
,',)Lle:
"-.rl~
~C:lleraLOrtor mathematical
suppOrt. Ex-COG
create
'-:.' •
functions
-\ means of specifying family members, 'lie implemenuu iou components from CIII
he assembled.
driven code
streamlines
the
process and slashes
time. will help Java developers
sophisticated faster,
economically.
the
that
development
OVERVIEW Ex-COG
produces
{~':;;T'kllle'ltatioll code trorn three things:
nich members
product
development
expression.'
!Ilg ~e:ller:ltivc: jlwgramming
is a template
to
code for mathematical
more efficiently
Code templates
developer modifiuble.The
and more
provided
are
benefits provided by
.'~llr'igl1r