Skip to content
Rui Ventura edited this page Mar 29, 2017 · 15 revisions

XPL Reference Manual

XPL is an imperative language and is intuitively presented in this manual. The language's basic characteristics are presented, such as data types, names manipulation, [lexical conventions][3], [structure/syntax][4], [function specification][5], [instruction semantics][6], [expression semantics][7], and, finally, [a few examples][8].

Table of Contents

Show/Hide  
  1. Data Types
  2. Names Manipulation
    1. Namespace and identifier visibility
    2. Variable validity
  3. Lexical Convetions
    1. Blank characters
    2. Comments
    3. Keywords
    4. Types
    5. Expression operators
    6. Delimiters and terminators
    7. Identifiers (names)
    8. Literals
      1. Integers
      2. Floating point reals
      3. Strings
      4. Pointers
  4. Grammar
    1. Types, identifiers, literals, and expression definitions
    2. Left-values
    3. Files
    4. Variable declarations
    5. Global symbols
    6. Initialization
  5. Functions
    1. Declaração
    2. Invocation
    3. Body
    4. Main function and program execution
  6. Statements
    1. Blocks
    2. Conditional statement
    3. Iteration statement: while
    4. Iteration statement: sweep
    5. Termination statement: stop
    6. Continuation statement: next
    7. Return statement: return
    8. Expressions as statements and printing operations
  7. Expressions
    1. Primitive expressions
      1. Identifiers
      2. Reading
      3. Parenthesis
    2. Expressions as a result of operator evaluation
      1. Indexing
      2. Identity and symmetry
      3. Memory allocation
      4. Address of expression
  8. Examples