overview of the language a table generation language initialize and manipulate columns and finally...

3
Overview of the language •A table generation language •Initialize and manipulate columns and finally generate a table •The values in the column are numbers and strings •The table is in the form of a comma separated file •Preprocessor support to the language

Upload: valerie-dickerson

Post on 02-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Overview of the language A table generation language Initialize and manipulate columns and finally generate a table The values in the column are numbers

Overview of the language

•A table generation language

•Initialize and manipulate columns and finally generate a table

•The values in the column are numbers and strings

•The table is in the form of a comma separated file

•Preprocessor support to the language

Page 2: Overview of the language A table generation language Initialize and manipulate columns and finally generate a table The values in the column are numbers

Brief Syntax, sample example and output

•Supports number , string and column data type.• num: , str: , col:c<num:, “C1”>

•General mathematical binop expressions as in x = a+b, a = a *b, x= a/b

•Indexing operations on columns as in c[i], c[i-j] and c.size

•Conditional statements using relational expressions as in if ( i > j) { …}, if (I < j){}else {…}

•Iterative statements using relational expressions as in loop (i == j) {….}

•The final table generation statement as in generate_table <list of comma separated columns>

sample.tab

TeamNames "Score1" "Score2" "Sum" "Ranks" "Bonus" "Avg"NewYorkKnicks 20. 40. 60. "None" 60. 30.TeamMiamiHeat 30. 34. 64. "Third" 69. 32._ChicagoBulls 25. 22. 47. "None" 47. 23.5DetroitPistons 33. 44. 77. "First" 97. 38.5HoustonRockets 42. 28. 70. "Second" 80. 35.

Page 3: Overview of the language A table generation language Initialize and manipulate columns and finally generate a table The values in the column are numbers

Project Development

•Set up environment• Ocaml for Windows• Version control – Tortoise SVN and Google code for repository

•Followed class examples and class instructions – • Scanner• Scanner tests• Parser • Parser tests • Interpreter• Preprocessor• Testing and Test Regression environment

•Lessons Learned• An insight into Interpreter functioning and program flow• Ocaml• Team oriented development skills