You are on page 1of 1

Manual Introduction AFL is a special programming language used to define and create custom indicators, scans, explorations, back-tests

and guru commentaries. Basics Lexical elements This chapter describes the different categories of word-like units (tokens) recognized by the AFL language interpreter. Whitespace Whitespace is the collective name given to spaces (blanks), tabs, new line characters and comments. Whitespace can serve to indicate where tokens start and end, but beyond this function, any surplus whitespace is discarded. Comments Comments are pieces of text used to annotate a program. Comments are for the programmers use only; they are stripped from the source code before parsing. The are two ways to delineate comments: C-like comments and C++ like comments. A C-like comment is any sequence of characters placed after the symbol pair /*. The comment terminates at the first occurrence of the pair */ following the initial /*. The entire sequence, including the four comment-delimiter symbols, is replaced by one space. A C++ like comments are single-line comments that start by using two adjacent slashes (//) in any position within the line and extend until the next new line. AFL does not allow nested comments. Tokens AFL recognizes five classes of tokens: identifiers constants string-literals operators punctuators (also known as separators) Identifiers are arbitrary names of any length given to functions and variables. Identifiers can contain the letters (a-z, A-Z), the underscore character ("_"), and the digits (0-9). The first character must be a letter. AFL identifiers are NOT case sensitive. Constants are tokens representing fixed numeric or character values. Numeric

You might also like