摘要 |
A system for analyzing syntax in a language processing system includes a memory which stores preselected indentation rules associated with a source code level language. A lexical analyzer reads a sequence of input symbols from the source code, and divides them into tokens, which tokens form sequences of symbols having a collective meaning. A syntax analyzer receives information from the tokens and compares the same to indentation rules stored in the memory. Source code correction, suggested source code correction, or warnings indicative of improper identation are selectively generated in accordance with an output of the syntax analyzer.
|