1 / 14

PFORD

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.

lew
Download Presentation

PFORD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PFORD Bhagyashree Bohra Deepti Jindal Shringika Porwal

  2. Outline • Introduction • Overview • Examples • Implementation details • Lessons learned

  3. PFORD • A programming language for making programming easier and translates complex languages • Some Generation: C++ Java

  4. Goals • Portability - interpreted and executed by a java interpreter. • Ease of use - very simple and quick to start

  5. What can the language do? • Basic operations – addition, multiplication, power, modulus… • Advanced operations – complex string operations , array operations • Translation

  6. Operations and Relations

  7. Statements

  8. Functions and Function call

  9. 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

  10. 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());

  11. What does translation entail • Multiple Walkers. (total 3 right now) • One for stand alone • On each for each language • C++ • Java

  12. Code Statistics (partial, currently in CVS)

  13. 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

  14. Future • Additional functionality • Translation to more languages • ie perl, C#

More Related