摘要 |
<p>PURPOSE:To enlarge the compressibility by encoding not only an operator, a reserved word and a numeric constant but also a variable and a character- string constant. CONSTITUTION:An encoding processing means 2 obtains successively words and phrases from a source program 1 and classifies them, generates the corresponding word and phrase number, etc. by referring to a reserved symbol table 3 having a correspondence table of the words and phrases, and the word and phrase number, and outputs them as an intermediate code 5. That is to say, when encoding processing means 2 inputs the source program, since the head numeral 100 of a line is a line number, the corresponding word and phrase number (=1) and the line number (=100) are outputted. The next SUM is not any of a line number, an operator, a reserved word, a numeric constant, and a character-string constant, therefore, it is registered in a variable symbol table, and the word and phrase number (=10) and a registered position number (=1) are outputted. The next operator is an operator, therefore, the corresponding word and phrase number (=7) is outputted, and thereafter, by the same operation, an intermediate code and a variable symbol table are generated and outputted.</p> |