140 likes | 290 Views
PFORD. Bhagyashree Bohra Deepti Jindal Shringika Porwal. Outline. Introduction Overview Examples Implementation details Lessons learned. PFORD. A programming language for making programming easier and translates complex languages Some Generation: C++ Java. Goals.
E N D
PFORD Bhagyashree Bohra Deepti Jindal Shringika Porwal
Outline • Introduction • Overview • Examples • Implementation details • Lessons learned
PFORD • A programming language for making programming easier and translates complex languages • Some Generation: C++ Java
Goals • Portability - interpreted and executed by a java interpreter. • Ease of use - very simple and quick to start
What can the language do? • Basic operations – addition, multiplication, power, modulus… • Advanced operations – complex string operations , array operations • Translation
Internal functions (include string) • Join • Join(a,b) joins strings a and b. • To Lower • toLower(m) makes all the characters in a string lower case • To Upper • toUpper( m) makes all the characters in a string upper case • Mean • mean() computes the mean of an array • Stddev • stddev() computes the stddev of an array • Sum • sum() sums all the elements of an array • PrintArray • print() prints all the elements of an array • Sort • sort() sorts all the elements of an array
Example 1: 8 11 startprogram w = 3; x = 10; func incw() { w=w+1; return w; }; func incx() { x=x+1; return x ; } ; func myfoo(y, z) { output y+y; x = 1; output z; } ; myfoo(incw(), incx());
What does translation entail • Multiple Walkers. (total 3 right now) • One for stand alone • On each for each language • C++ • Java
Code Statistics (partial, currently in CVS)
Lessons Learned • Fully investigate the feasibility of the supporting tools • Ie. translation • Get advice from experienced people • When an easier method of implementing classes of function exists, use it • power • When in doubt see Mx
Future • Additional functionality • Translation to more languages • ie perl, C#