DOC PREVIEW
Columbia COMS W4115 - Table Generation Language TabPro

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Table Generation Language TabProProject LRMRajat Dixit UNI: rd2392Anureet Dhillon UNI:ad2660LakshmiNadig UNI:ln2206ContentsTable Generation Language TabPro ................................................................................... 11. Lexical Conventions ................................................................................................... 31.1 whitespace:.......................................................................................................... 31.2 Comments: .......................................................................................................... 31.3 Identifiers:........................................................................................................... 31.4 Keywords:........................................................................................................... 31.5 Constants............................................................................................................. 41.6 Declarations ........................................................................................................ 41.7 Operators:............................................................................................................ 41.8 Separators:........................................................................................................... 41.9 Scope and Name Space:...................................................................................... 41.10 Built in functions and reserved keywords:.......................................................... 5(c ) row_limit .............................................................................................................. 5(d) col_limit ................................................................................................................ 5(e) col_sort_index................................................................................................. 5(f) row_filter_condition ....................................................................................... 52. Types:.......................................................................................................................... 53. Expressions ................................................................................................................. 63.1 Primary Expressions ........................................................................................... 63.2 Postfix Expressions............................................................................................. 63.2.1 Indexed Interpretation................................................................................. 63.2.2 Function Calls ............................................................................................. 73.3 Expressions with Arithmetic Operators.............................................................. 73.4 Expressions with Relational Operators.............................................................. 73.5 Expressions with Logical And Operator............................................................ 83.6 Expressions with Logical Or Operator ............................................................... 83.7 Expressions with Assignment operators ............................................................. 84. Statements................................................................................................................... 84.1 Normal Statement ............................................................................................... 94.2 Block Statement.................................................................................................. 94.3 Conditional statements........................................................................................ 94.4 return statement................................................................................................... 94.5 Iteration Statements .......................................................................................... 104.6 Function Declaration......................................................................................... 105. Library Support......................................................................................................... 116. Grammar rules .......................................................................................................... 117. Lexer Tokens ............................................................................................................ 131. Lexical ConventionsA TabPro program consists of a single translation unit stored in a file which is written using the ASCII character set. The file is scanned in a forward manner starting from the logical start of the file to the end of file. Various tokens present in the file could be:- Keywords- Identifiers or variables- Operators- ConstantsTokens are separated from each other by using a white space or a semicolon.1.1 whitespace: TabPro ignores whitespace. Whitespace characters consist of newlines, carriage returns, tabs and spaces. It could be also combination of the above mentioned characters.1.2 Comments: Single line comments are supported. The character ? introduces a comment, which terminates at the end of that line. Comments do not nest and they do not occur within a string or character literals.1.3 Identifiers:An identifier represents a variable name or a function name. Identifier is a combination of alphabets and digits where the first character has to be an alphabet. Special characters are not permitted. The maximum length of an identifier could be ten. Two identifiers are considered equal if the characters of their names match. 1.4 Keywords:Below is the list of identifiers that has been reserved by TabPro for the use of keywords: num string loopreturn function rowcol if elsecol_heading row_heading row_limitcol_limit col_sort_index row_filter_conditionsize currIndex generate_table1.5 ConstantsThe kinds of constants used in TabPro are listed below:(a) Number Constants: These are declared using the keyword num: datatype in Tabpro. These include decimal integers which are a string of decimal digits from [0-9] and real numbers of the form [0-9][.][0-9.(b) String Constants: A string constant is enclosed in double quotes. The quotes are not considered as a part of the constant.1.6 DeclarationsTabPro declares an identifier when it is first encountered in a file. A declaration is made by placing the <datatype:


View Full Document

Columbia COMS W4115 - Table Generation Language TabPro

Documents in this Course
YOLT

YOLT

13 pages

Lattakia

Lattakia

15 pages

EasyQL

EasyQL

14 pages

Photogram

Photogram

163 pages

Espresso

Espresso

27 pages

NumLang

NumLang

6 pages

EMPATH

EMPATH

14 pages

La Mesa

La Mesa

9 pages

JTemplate

JTemplate

238 pages

MATVEC

MATVEC

4 pages

TONEDEF

TONEDEF

14 pages

SASSi

SASSi

16 pages

JTemplate

JTemplate

39 pages

BATS

BATS

10 pages

Synapse

Synapse

11 pages

c.def

c.def

116 pages

TweaXML

TweaXML

108 pages

Load more
Download Table Generation Language TabPro
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Table Generation Language TabPro and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Table Generation Language TabPro 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?