Location of Repository

PCL Portable Charting Language Language Reference Manual

By Chee Seng Choong, Thomas Chou and Lexical Conventions

Abstract

expression operators and other operators. Whitespace (blanks, tabs, and newlines) are ignored and are expected to serve as token separators. 1.1.1 Comments Comments begin with “// ” and ends with a carriage return or new line. Comments can begin anywhere in a line. 1.1.2 Identifiers An identifier consists of a sequence of letters, digits, and underscores “_”. The first character of an identifier should be a letter. Identifiers are case-sensitive. 1.1.3 Keywords The following identifiers are reserved as keywords, and should not be used otherwise: if else for value validate generate return break continue load save let print true false in newseries scatter line bar 1.1.4 Constants There are two types of constants – numbers and strings. Their format is defined as follows: 1.1.4.1 Numbers A number consists of one or more digits with an optional decimal point “.”. A number with a decimal must have the following format: An integer constant followed by a decimal point and an “e ” or “E ” followed by a signed integer exponent. A positive exponent may be preceeded by a plus sign “+”. A negative exponent must have a minus sign “-“. 1.1.4.2 Strings A string can be one or more characters enclosed in double quotes “ “ ”. Any doublequotes within a string must be preceded by a backslash “\ ” character. 1.1.6 Other tokens The following operators or symbolic characters are used

Topics: The language is classified into 6 kinds of tokens, identifiers, keywords, constants, strings
Year: 2011
OAI identifier: oai:CiteSeerX.psu:10.1.1.187.9983
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://citeseerx.ist.psu.edu/v... (external link)
  • http://www.cs.columbia.edu/%7E... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.