-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Rui Ventura edited this page Apr 1, 2017
·
15 revisions
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, structure/syntax, function specification, instruction semantics, expression semantics, and, finally, a few examples.
Show/Hide
- 1. Data Types
- 2. Names Manipulation
- 2.1. Namespace and identifier visibility
- 2.2. Variable validity
- 3. Lexical Convetions
- 3.1. Blank characters
- 3.2. Comments
- 3.3. Keywords
- 3.4. Types
- 3.5. Expression operators
- 3.6. Delimiters and terminators
- 3.7. Identifiers (names)
- 3.8. Literals
- 3.8.1. Integers
- 3.8.2. Floating point reals
- 3.8.3. Strings
- 3.8.4. Pointers
- 4. Syntax
- 4.1. Types, identifiers, literals, and expression definitions
- 4.2. Left-values
- 4.3. Files
- 4.4. Variable declarations
- 4.5. Global symbuls
- 4.6. Initialization
- 5. Functions
- 5.1. Declaração
- 5.2. Invocation
- 5.3. Body
- 5.4. Main function and program execution
- 6. Statements
- 6.1. Blocks
- 6.2. Conditional statement
- 6.3. Iteration statement: while
- 6.4. Iteration statement: sweep
- 6.5. Termination statement: stop
- 6.6. Continuation statement: next
- 6.7. Return statement: return
- 6.8. Expressions as statements and printing operations
- 7. Expressions
- 7.1. Primitive expressions
- 7.1.1. Identifiers
- 7.1.2. Reading
- 7.1.3. Parenthesis
- 7.2. Expressions as a result of operator evaluation
- 7.2.1. Indexing
- 7.2.2. Identity and symmetry
- 7.2.3. Memory allocation
- 7.2.4. Address of expression
- 8. Examples