| |
| | Analysis - Practical PHP Programming |
 | | The analysis stage can be broken down into three sub-parts: lexical analysis, syntax analysis, and semantic analysis. |
 | | In PHP terms, a string is a token, as is a variable, a number, a brace, etc. As the lexical analyser (usually just called the lexer) finds tokens within a script, it returns them to the syntax analyser (parser), which makes sure that the script fits the syntax rules you have laid down. |
 | | So, the three stages of analysis: check we have matching tokens, check the tokens fit together into valid groups, and check the overall code is actually meaningful. |
| www.hudzilla.org /phpbook/read.php/21_5_3 (659 words) |
|