-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Rui Ventura edited this page Mar 29, 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
- Data Types
- Names Manipulation
- Namespace and identifier visibility
- Variable validity
- Lexical Convetions
- Blank characters
- Comments
- Keywords
- Types
- Expression operators
- Delimiters and terminators
- Identifiers (names)
- Literals
- Integers
- Floating point reals
- Strings
- Pointers
- Grammar
- Types, identifiers, literals, and expression definitions
- Left-values
- Files
- Variable declarations
- Global symbols
- Initialization
- Functions
- Declaração
- Invocation
- Body
- Main function and program execution
- Statements
- Blocks
- Conditional statement
- Iteration statement: while
- Iteration statement: sweep
- Termination statement: stop
- Continuation statement: next
- Return statement: return
- Expressions as statements and printing operations
- Expressions
- Primitive expressions
- Identifiers
- Reading
- Parenthesis
- Expressions as a result of operator evaluation
- Indexing
- Identity and symmetry
- Memory allocation
- Address of expression
- Examples