SU1188755A1 - Device for syntactic analysing of programs - Google Patents

Device for syntactic analysing of programs Download PDF

Info

Publication number
SU1188755A1
SU1188755A1 SU843731826A SU3731826A SU1188755A1 SU 1188755 A1 SU1188755 A1 SU 1188755A1 SU 843731826 A SU843731826 A SU 843731826A SU 3731826 A SU3731826 A SU 3731826A SU 1188755 A1 SU1188755 A1 SU 1188755A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
block
information
outputs
Prior art date
Application number
SU843731826A
Other languages
Russian (ru)
Inventor
Вячеслав Васильевич Таборовец
Ирина Петровна Стацук
Андрей Петрович Патрушев
Александр Геннадьевич Сергеев
Original Assignee
Специальное Конструкторско-Технологическое Бюро С Опытным Производством Минского Радиотехнического Института
Минский радиотехнический институт
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Специальное Конструкторско-Технологическое Бюро С Опытным Производством Минского Радиотехнического Института, Минский радиотехнический институт filed Critical Специальное Конструкторско-Технологическое Бюро С Опытным Производством Минского Радиотехнического Института
Priority to SU843731826A priority Critical patent/SU1188755A1/en
Application granted granted Critical
Publication of SU1188755A1 publication Critical patent/SU1188755A1/en

Links

Abstract

УСТРОЙСТВО ДЛЯ СИНТАКСИЧЕСКОГО АНАЛИЗА ПРОГРАММ, содержащее узел ввода кодов, информационный вход которого  вл етс  первым информационным входом устройства, первый и второй узлы считывани , выходы которых соединены соответственно с входами блока вывода, выход которого  вл етс  выходом устройства, четыре блока сравнени , первые информационные входы которых соединены с вторым информационным входом устройства, а выходы подключены соответственно к информационным входам первого, второго, третьего и четвертого узлов пам ти, отличающеес  тем, что, с целью расширени  функциональных возможностей за счет обеспечени  преобразовани  инфиксной записи в постфиксную, в него введены блок регистров, буферный регистр , блок микропрограммного управлени  и мультиплексор, выход которого подключен к вторым информационным входам с первого по четвертый блоков сравнени , первый и второй информационные входы мультиплексора соединены соответственно с выходами разр дов буферного регистра и информационным выходом блока регистров , информационный вход буферного регистра соединен с выходом узла ввода кодов, вход считывани  которого подключен к первому выходу блока микропрограммного управлени , второй, третий и четвертый выходы которого подключены соответственно к установочному входу буферного регистра, к разрешающему входу первого узла считывани  и к разрешающему входу второго узла считывани , п тый выход блока микропрограммного управлени  подключен к установочным входам узлов пам (Л ти, выходы которых соединены соответственно с первым, вторым, третьим и четвертым входами блока микропрограммного управлени , п тый вход которого  вл етс  входом пуска устройства, шестой выход блока микропрограммного управлени  подключен к входам стробировани  блоков сравнени , седьмой и восьмой выходы соединены соответственно с синхронизируоо ющим входом блока регистров и с разре00 шающим входом мультиплексора, информа ционные входы блока регистров и первого СП узла считывани  соединены с выходами разр дов буферного регистра, выход блока ел регистров соединен с информационным входом второго узла считывани .A SOFTWARE FOR SYNTACTIC PROGRAM ANALYSIS containing a code entry node whose information input is the first information input of the device, first and second reading nodes, whose outputs are connected respectively to the inputs of the output block whose output is the output of the device, four comparison blocks, first information inputs which are connected to the second information input of the device, and the outputs are connected respectively to the information inputs of the first, second, third and fourth memory nodes; Thus, in order to extend the functionality by converting an infix record into a postfix one, a register block, a buffer register, a microprogram control block and a multiplexer are inputted into it, the output of which is connected to the second information inputs of the first to fourth comparison blocks, the first and the second information inputs of the multiplexer are connected respectively with the outputs of the buffer register bits and the information output of the register block; the information input of the buffer register is It is integrated with the output of the code entry node whose read input is connected to the first output of the firmware control unit, the second, third and fourth outputs of which are connected respectively to the setup input of the buffer register, to the enable input of the first readout node and to the enable input of the second readout node, fifth output the microprogram control unit is connected to the installation inputs of the memory nodes (L ti, the outputs of which are connected respectively to the first, second, third and fourth inputs of the microprogram control, the fifth input of which is the device start input, the sixth output of the firmware control block is connected to the gates of the comparison blocks, the seventh and eighth outputs are connected respectively to the synchronizing input of the register block and the enable input of the multiplexer, the information inputs of the register block and the first The readout control nodes are connected to the outputs of the buffer register bits, and the output of the block of registers is connected to the information input of the second readout node.

Description

Изобретение относитс  к вычислительной технике и может быть использовано дл  предварительной обработки дискретной информации, а именно дл  преобразовани  инфиксной записи алегбраической формулы в постфиксную, что широко используетс  при создании специализированных вычислительных средств, предназначенных дл  моделировани  динамических объектов , описываемых полиноминальными уравнени ми, а также при определении последовательности вычислений сложных алгебраических выражений в операционных системах.The invention relates to computing and can be used for preprocessing discrete information, namely, to convert an infix notation of an alegbraic formula into a postfix one, which is widely used in creating specialized computational tools for modeling dynamic objects described by polynomial equations, as well as in determining Sequences for computing complex algebraic expressions in operating systems.

Цель изобретени  - расширение функциональных возможностей за счет обеспечени  преобразовани  инфиксной записи в постфиксную .The purpose of the invention is to expand the functionality by converting an infix record to a postfix one.

На фиг. 1 изображена структурна  схема устройства; на фиг. 2 - структурна  схема блока микропрограммного управлени ; на фиг. 3 - временна  диаграмма работы устройства.FIG. 1 shows a block diagram of the device; in fig. 2 is a block diagram of the firmware control unit; in fig. 3 - time diagram of the device.

На схемах обозначен блок 1 микропрограммного управлени ., узел 2 ввода кодов, буферный регистр 3, узлы 4, 5 считывани , блок 6 вывода, блок 7 регистров, мультиплексор 8, блоки 9, 10, 11 и 12 сравнени , узлы 13, 14, 15 и 16 пам ти, узел 17 посто нной пам ти, регистр 18 адреса, узел 19 формировани  адреса, регистр 20 микрокоманд , триггер 21, счетчик 22, генератор 23 импульсов.The diagrams denote microprogram control unit 1., Code entry node 2, buffer register 3, read nodes 4, 5, output block 6, register block 7, multiplexer 8, comparison blocks 9, 10, 11 and 12, nodes 13, 14, 15 and 16 of memory, fixed memory node 17, address register 18, address generation node 19, microinstruction register 20, trigger 21, counter 22, pulse generator 23.

Узел 19 Служит дл  формировани  адреса следующей микрокоманды, на его входы поступает информаци  из регистра 20 микрокоманд, в котором хранитс  текуща  микрокоманда, с выхода счетчика 22 (символов) дл  анализа его содержимого на ноль, с выходов узлов 13, 14, 15 и 16 пам ти. Триггер 21 служит дл  установки управл ющих потенциалов на выходе блока 1, управл ющие импульсы поступают на входы триггера от регистра 20 микрокоманд . Счетчик 22 (символов) служит дл  организации работы устройства, перед началом работы в счетчике устанавливаетс  число символов исходной записи. Сигнал вычитани  единицы поступает на вход счетчика из регистра 20 микрокоманды, и при равенстве нулю хран щегос  в счетчике числа устройство заканчивает работу.Node 19 Serves to form the address of the next micro-command; its inputs receive information from the micro-register register 20, in which the current micro-command is stored, from the output of the 22 (characters) counter to analyze its contents to zero, from the outputs of nodes 13, 14, 15 and 16 ti. The trigger 21 serves to set the control potentials at the output of block 1, the control pulses are fed to the trigger inputs from the register of 20 microcommands. The counter 22 (characters) serves to organize the operation of the device, before starting work in the counter the number of characters of the original recording is set. The unit subtraction signal is fed to the counter input from the microcommand register 20, and if the number stored in the number counter is zero, the device ends the operation.

Узел 2 ввода кодов представл ет собой пам ть, в которой записываютс  коды символов исходной записи. Сигналы чтени , прибавлени  единицы к счетчику адреса, обнулени  счетчика адреса поступают из блока 1.Code entry node 2 is a memory in which the character codes of the original record are written. The read signals, adding one to the address counter, zeroing the address counter come from block 1.

Буферный регистр 3 служит дл  промежуточного хранени  информации, в регистре записываетс  код символа при чтении этого кода из узла 2 ввода кодов. Регистр сбрасываетс  по сигналу, поступающему из блока 1.Buffer register 3 is used for intermediate storage of information; the character code is recorded in the register when reading this code from code entry node 2. The register is cleared by a signal from block 1.

Узлы 4 и 5 считывани  служат дл  передачи информации соответственно из буферного регистра 3 и блока 7 регистров на выход устройства через блок 6. Управл ющие импульсы, поступающие из блока 1, пропускают информацию, поступающую на узлы 4 и 5 считывани .The readout nodes 4 and 5 serve to transfer information from the buffer register 3 and register block 7 to the output of the device through block 6, respectively. The control pulses from block 1 pass information to the read nodes 4 and 5.

Блок 6 служит дл  объединени  одноименных разр дов кодов, поступающих с выходов узлов 4 и 5, и вывода их наBlock 6 is used to combine the same-named code bits from the outputs of nodes 4 and 5 and output them to

0 выход устройства.0 device output.

Блок 7 регистров служит дл  промежуточного хранени  информации и состоит из сдвиговых регистров, количество которых равно числу двоичных разр дов в коде. Информаци , поступающа  на вход блока регистров, записываетс  в нулевые разр ды регистров по синхроимпульсу, поступающему из блока 1. Одновременно с записью происходит сдвиг информации вправо (из младших разр дов регистров в старшие).The register unit 7 serves for intermediate storage of information and consists of shift registers, the number of which is equal to the number of binary bits in the code. The information arriving at the input of a block of registers is written into the zero bits of the registers according to the sync pulse coming from block 1. Simultaneously with the recording, the information shifts to the right (from the lower bits of the registers to the older ones).

0 Сдвиг влево осуществл етс  по сигналу из блока 1, при этом информаци , записанна  в нулевых разр дах регистров, уничтожаетс .0 The shift to the left is effected by the signal from block 1, and the information recorded in the zero bits of the registers is deleted.

Каждый из блоков 9-12 состоит из св занных между собой узла пам ти и схемыEach of blocks 9-12 consists of an interconnected memory node and circuit

сравнени . Узел пам ти подключен к одному из входов схемы сравнени , к другому входу которой подключен выход мультиплексора 8. По сигналу запуска, поступающему от блока 1, происходит сравнение кода, поступающего с выхода мультиплексора 8, и кодов, заданных в-блоках сравнени . Нри совпадении кодов блок сравнени  вырабатывает сигнал равенства кодов. Этот сигнал поступает на вход соответствующего узла пам ти и там запоминаетс . compare. The memory node is connected to one of the inputs of the comparison circuit, to the other input of which the output of multiplexer 8 is connected. The start signal from block 1 compares the code from the output of multiplexer 8 and the codes specified in the comparison blocks. When the codes match, the compare unit generates a code equality signal. This signal is input to the corresponding memory node and is stored there.

Назначение выходов и входов блока 1 следующее. Первый выход, включащий в себ  три двоичных разр да, поступающих из регистра 20 микрокоманды, подключен к входу узла 2 ввода кодов и служит дл  выдачи сигналов чтени , прибавлени  единицы к счетчику адреса и обнулени  счетчика адреса. Второй выход подключен к входу буферного регистра 3 и служит дл  выдачи сигнала сброса, поступающего из регистра 20 микрокоманды. Третий и четвертый выходы подключены соответственно к входам узлов 4 и 5 считывани  и служат дл  выдачи управл ющих импульсов, поступающих из регистра микрокоманды 20. П тый выход подключен к входам узлов 13-16 пам ти и служит дл  выдачи сигнала сброса их, поступающего из регистра микрокоманды 20. Шестой выход подключен к входам блоков 9-12 и служит дл  выдачи сигнала запуска работы блоков сравнени . Седьмой выход, включающий в себ  два двоичных разр да, подключен к входу блока 7 регистров и служит дл  выдачи синхроимпульса записи и сигнала сдвига влево. Восьмой выход подключен к входу мультиплексора 8 и служит дл  управлени  этимThe purpose of the outputs and inputs of block 1 is as follows. The first output, which includes three binary bits from the micro-command register 20, is connected to the input of the code input node 2 and serves to emit read signals, add one to the address counter and zero the address counter. The second output is connected to the input of the buffer register 3 and serves to emit a reset signal from the micro-command register 20. The third and fourth outputs are connected respectively to the inputs of readout nodes 4 and 5 and serve to issue control pulses from the micro-command register 20. The fifth output is connected to the inputs of memory nodes 13-16 and serves to output a reset signal from the register micro-commands 20. The sixth output is connected to the inputs of blocks 9-12 and serves to output a start signal for the operation of the comparison blocks. The seventh output, which includes two binary bits, is connected to the input of block 7 of registers and serves to output a write clock and a left shift signal. The eighth output is connected to the input of multiplexer 8 and serves to control this.

мультиплексором при помощи сигнала, поступающего с выхода триггера 21.multiplexer using a signal from the output of the trigger 21.

Первый, второй, третий, четвертый входы блока подключены соответственно к выходам узлов 13, 14, 15, 16 и служат дл  анализа информации, хран щейс  в этих узлах . П тый вход служит дл  запуска работы устройства, а также дл  начальной установки счетчика 22 (символов).The first, second, third, fourth inputs of the unit are connected to the outputs of nodes 13, 14, 15, 16, respectively, and serve to analyze the information stored in these nodes. The fifth input serves to start the operation of the device, as well as to initialize the counter 22 (characters).

Устройство выполн ет преобразование инфиксной записи в постфиксную или так называемую «польскую запись. Входной информацией в устройстве  вл етс  формула , описывающа  операнды, участвующие в операци х, знаки операций и пор док выполн емых действий. Формула записываетс  с соблюдением следующих ограничений вс  формула должна быть заключена в скобки; пор док действий указываетс  скобками; операнды обозначаютс  символическими идентификаторами.The device converts an infix notation into a postfix or so-called "Polish notation." The input to the device is a formula that describes the operands involved in the operations, the signs of the operations, and the order of the actions performed. The formula is written with the following limitations: the entire formula must be enclosed in brackets; the order of action is indicated by brackets; Operands are denoted by symbolic identifiers.

Постфиксна  запись характеризуетс  тем, что не требует скобок и четко определ ет пор док действий. Правила перевода из инфиксной записи в постфиксную сформулированы следующим образом: идентификаторы в «польской записи следуют в том пор дке, что и в инфракрасной записи: знаки действий в «польской записи следуют в том пор дке, в каком они должны вычисл тьс  (слева направо); знаки действий располагаютс  непосредственно за своими операндами.The postfix entry is characterized by the fact that it does not require brackets and clearly defines the order of actions. The rules for converting from infix to postfix notation are formulated as follows: the identifiers in the "Polish record follow in the order as in the infrared record: the signs of the actions in the" Polish record follow in the order in which they should be calculated (from left to right) ; action signs are located directly behind their operands.

Алгоритм преобразовани  инфиксной записи в постфиксную следующий.The algorithm for converting infix to postfix notation is as follows.

Выбираетс  очередной символ записи. Происходит проверка, не  вл етс  ли он последним в записи. Если нет, то осуществл етс  переход к щагу 2, в противном случае алгоритм заканчивает работу.The next character in the record is selected. It checks whether it is the last one in the record. If not, then go to step 2, otherwise the algorithm ends the work.

Если выбранный импульс  вл етс  открывающей скобкой («(«) ,то происходит переход к щагу 3, если идентификатором, то происходит переход к шагу 4, если знаком действи , то происходит переход к шагу 5, если закрывающей скобкой ()), то происходит переход к шагу 6.If the selected pulse is an opening bracket ("("), then go to step 3, if there is an identifier, then go to step 4, if with an action sign, then go to step 5, if the closing bracket ()), then Go to step 6.

Символ записываетс  в рабочее поле. Происходит переход к шагу 1.The symbol is recorded in the working field. The transition to step 1.

Символ записываетс  в постфиксную запись. Если предыдущий символ  вл етс  знаком действи , то осуществл етс  переход к шагу 7, в противном случае происходит переход к шагу 1.The character is written to the postfix notation. If the previous character is a sign of the action, then go to step 7, otherwise go to step 1.

Символ записываетс  в рабочее поле. Происходит переход к шагу 1.The symbol is recorded in the working field. The transition to step 1.

Знаки действи , записанные в рабочем поле, записываютс  в постфиксную запись в пор дке, обратном пор дку занесени  в рабочее поле. Осуществл етс  переход к шагу 1.Signs of actions recorded in the working field are written into the postfix notation in the order, the reverse order being entered in the working field. Go to step 1.

Знак действи  помещаетс  в постфиксную запись. Уменьшаетс  количество элементов в рабочем поле. Осуществл етс  .переход к шагу 1.The action sign is placed in a postfix notation. The number of elements in the working area decreases. Go to step 1.

Устройство работает следующим образом. Выборка очередного символа записи означает чтение очередного кода символа из узла 2 и занесение его в буферный регистр 3. Занесение символа в рабочее поле означает запись кода символа в блоке 7 регистров. Занесение символа в «польскую запись означает передачу кода символа на вход устройства. Перед началом работы по входам ввода программ в блоки 9-The device works as follows. Sampling the next character in the record means reading the next character code from node 2 and entering it into the buffer register 3. Entering the character into the working field means writing the character code in block 7 of the registers. Entering a character in a “Polish entry” means sending a character code to the input of the device. Before starting work on the inputs of entering programs in blocks 9-

0 12 занос тс  соответственно коды символов, используемых идентификаторов, знаков действи , открываюшей скобки, закрывающей скобки.0 12 is entered in accordance with the codes of symbols, identifiers used, action signs, opening brackets, closing brackets.

По включении питани  сбрасываетс  счетчик адреса узла 2 ввода кодов, счетчик 22When the power is turned on, the counter of the node 2 code entry address is reset, counter 22

(символов) блока 1, буферный регнистр 3, узлы 13-16 пам ти. (characters) of block 1, buffer register 3, memory nodes 13-16.

В узел 2 заноситс  исходна  запись, после чего в счетчике адреса узла 2 ввода кодов находитс  адрес последнего символаThe initial record is entered in node 2, after which the address of the last character is found in the counter of the code input node 2 entry

Q записи, в счетчике (символов) блока 1 - число символов исходной записи. По сигналу «Пуск, поступающему на вход блока 1, устройство начинает работу.Q records, in the counter (characters) of block 1 - the number of characters of the original record. On the signal "Start received at the input of block 1, the device starts operation.

По сигналу с выхода блока 1 сбрасываетс  счетчик адреса узла 2 ввода кодов.The signal from the output of block 1 resets the address counter of the node 2 input codes.

5 Происходит анализ на ноль содержимого счетчика 22 (символов).5 Analysis of the contents of counter 22 (characters) is performed.

Если содержимое счетчика не равно нулю, то устройство продолжает работать, в противном случае сигналами с выходов блока 1 сбрасываютс  счетчик адреса узлаIf the contents of the counter are not equal to zero, the device continues to work, otherwise the node address counter is reset by signals from the outputs of block 1

° 2 ввода кодов, буферный регистр 3, узлы 13- 16 пам ти. Таким образом, устройство под готавливаетс  к работе.° 2 code entry, buffer register 3, memory nodes 13-16. In this way, the device is prepared for operation.

Сигналом «Чтение с выхода блока 1 в буферный регистр 3 считываетс  кодThe signal "Read from the output of block 1 to the buffer register 3 reads the code

5 очередного символа записи из узла 2. Сигналом с выхода блока 1 выход буферного регистра 3 подключаетс  к входу мультиплекорса 8. Осуществл етс  запуск работы блоков 9-12. Происходит, анализ содержимого узлов 13-16.5 of the next write symbol from node 2. With the output signal from block 1, the output of buffer register 3 is connected to the input of multiplex 8. Blocks 9-12 are launched. Occurs, an analysis of the contents of nodes 13-16.

0 Если выбранный символ  вл етс  открывающей скобкой, т.е. установлен в единицу узел 15 пам ти, то по сигналу с выхода блока 1 код символа, записанный в буферном регистре 3, записываетс  в блок 7 ре- гистров. По сигналам с выходов блока 1 происходит прибавление единицы к счетчику адреса узла 2, сброс буферного регистра 3, сброс узлов пам ти. Таким образом, устройство переходит к выборке кода очередного символа.0 If the selected character is an opening bracket, i.e. the memory node 15 is set to one, then the signal from the output of block 1 of the character code recorded in buffer register 3 is written to block 7 of the registers. The signals from the outputs of block 1 add one to the address counter of node 2, reset the buffer register 3, and reset the memory nodes. Thus, the device proceeds to the sample code of the next character.

0 Если выбранный символ  вл етс  идентификатором , т. е. установлен в единицу узел 15 пам ти, то по сигналу с выхода блока 1 код символа, записанный в буферном регистре 3, через узел 4 считывани , блок 6 передаетс  на выход устройства. По сигналу0 If the selected character is an identifier, i. On signal

5 с выхода блока 1 сбрасываютс  узлы пам ти . Выход блока 7 регистров подключаетс  к входу мультиплексора 8. Сигналом с выхода блока 1 осуществл етс  запуск работы блоков 9-12. Происходит анализ содержимого узлов пам ти. Если символ, записанный последним в блок 7 регистров,  вл етс  знаком действием, т.е. установлен в единицу, то по сигналу с выхода блока 1 код этого символа через узел 5 считывани  и блок 6 передаетс  на выход устройства . По сигналу с выхода блока 1 происходит сдвиг влево в блоке 7 регистров. Устройство переходит к выборке следующего символа, как было описано выше. Если символ , записанный последним в блок 7 регистров , не  вл етс  знаком действи , то устройство переходит к выборке следуюпдего символа, как было описано выше.5, the output of block 1 resets the memory nodes. The output of register block 7 is connected to the input of multiplexer 8. A signal from the output of block 1 initiates the operation of blocks 9-12. The analysis of the contents of the memory nodes. If the character recorded last in block 7 of registers is a sign, i.e. set to one, the signal from the output of block 1 codes this symbol through the node 5 of the readout and block 6 is transmitted to the output of the device. The signal from the output of block 1 is shifted to the left in block 7 of registers. The device proceeds to sample the next character, as described above. If the character recorded last in block 7 of registers is not a sign of the action, then the device proceeds to the selection of the next character after it was described above.

Если выбранный символ  вл етс  знаком действи , т. е. установлен в единицу узел 14 пам ти, то по сигналу с блока 1 код этого символа, записанный в буферном регистре 3, записываетс  в блок 7 регистров. Устройство переходит к выборке следующего символа, как было описано выше.If the selected character is a sign of action, i.e., memory node 14 is set to one, then, according to the signal from block 1, the code of this symbol written in buffer register 3 is written to block 7 of registers. The device proceeds to sample the next character, as described above.

Если выбранный символ  вл етс  закрывающей скобкой, т. е. установлен в единицу узел 16 пам ти, происходит анализ кода символа , записанного последним в блок 7 регистров , как было описано выше. Если этот символ  вл етс  знаком действи , его код передаетс  на выход устройства, как было описано выше. По сигналу с выходаIf the selected character is a closing bracket, i.e., memory node 16 is set to one, the character code recorded last in block 7 of registers is analyzed, as described above. If this symbol is an action sign, its code is transmitted to the output of the device, as described above. At the exit signal

блока 1 происходит сдвиг влево в блоке 7 регистров. Происходит анализ следующего символа, записанного в блоке 7 регистров . Таким образом, коды знаков действи , записанные в блок 7 регистров, передаютс  на выход устройства в пор дке, обратном пор дку их записи в блок 7 регистров, до тех пор,пока код символа, выдаваемый на выход блока 7, не будет  вл тьс  кодом закрывающей скобки. В этом случае по сигналу с выхода блока I происходит сдвиг влево в блоке 7 регистров и устройство переходит к выборке следующего символа , как было описано выше.block 1 is shifted to the left in block 7 registers. There is an analysis of the next character written in block 7 of registers. Thus, the action character codes recorded in register block 7 are transmitted to the output of the device in order, the reverse of their writing in register block 7, until the character code issued by the output of block 7 is the code closing brace. In this case, the signal from the output of block I is shifted to the left in block 7 of registers and the device proceeds to fetch the next character, as described above.

Вс кий раз, когда устройство переходит к выборке следующего символа, по сигналу из регистра 20 микрокоманд содержимоеAny time the device goes to the next character selection, the signal from the register of 20 micro-instructions is sent

0 счетчика (символов) блока I уменьшаетс  на единицу. Устройство повтор ет цикл работы , начина  с анализа на ноль содержимого счетчика 22. Если содержимое счетчика (символов) равно нулю, устройство заканчивает работу как было описано выше.0, the counter (characters) of block I is decremented by one. The device repeats the cycle of operation, starting with analyzing the contents of counter 22 for zero. If the contents of the counter (characters) are zero, the device ends up as described above.

ВыходРМКVyhoRMK

Claims (1)

УСТРОЙСТВО ДЛЯ СИНТАКСИЧЕСКОГО АНАЛИЗА ПРОГРАММ, содержащее узел ввода кодов, информационный вход которого является первым информационным входом устройства, первый и второй узлы считывания, выходы которых соединены соответственно с входами блока вывода, выход которого является выходом устройства, четыре блока сравнения, первые информационные входы которых соединены с вторым информационным входом устройства, а выходы подключены соответственно к информационным входам первого, второго, третьего и четвертого узлов памяти, отличающееся тем, что, с целью расширения функциональных возможностей за счет обеспечения преобразования инфиксной записи в постфиксную, в него введены блок регистров, буферный регистр, блок микропрограммного управле- ния и мультиплексор, выход которого подключен к вторым информационным входам с первого по четвертый блоков сравнения, первый и второй информационные входы мультиплексора соединены соответственно с выходами разрядов буферного регистра и информационным выходом блока регистров, информационный вход буферного регистра соединен с выходом узла ввода кодов, вход считывания которого подключен к первому выходу блока микропрограммного управления, второй, третий и четвертый выходы которого подключены соответственно к установочному входу буферного регистра, к разрешающему входу первого узла считывания и к разрешающему входу второго узла считывания, пятый выход блока микропрограммного управления подклю- § чен к установочным входам узлов памяти, выходы которых соединены соответственно с первым, вторым, третьим и четвертым входами блока микропрограммного управления, пятый вход которого является входом пуска устройства, шестой выход блока микропрограммного управления подключен к входам стробирования блоков сравнения, седьмой и восьмой выходы соединены соответственно с синхронизирующим входом блока регистров и с разрешающим входом мультиплексора, информационные входы блока регистров и первого узла считывания соединены с выходами разрядов буферного регистра, выход блока регистров соединен с информационным входом второго узла считывания.DEVICE FOR SYNTACTIC ANALYSIS OF PROGRAMS, containing a code input node, the information input of which is the first information input of the device, the first and second readout nodes, the outputs of which are connected respectively to the inputs of the output block, the output of which is the output of the device, four comparison blocks, the first information inputs of which are connected with the second information input of the device, and the outputs are connected respectively to the information inputs of the first, second, third and fourth memory nodes, characterized in order to expand the functionality by providing the conversion of infix to postfix, a register block, a buffer register, a microprogram control unit and a multiplexer are introduced into it, the output of which is connected to the second information inputs from the first to fourth comparison blocks, the first and the second information inputs of the multiplexer are connected respectively to the outputs of the bits of the buffer register and the information output of the register block, the information input of the buffer register is connected to the output m of the code input node, the read input of which is connected to the first output of the microprogram control unit, the second, third and fourth outputs of which are connected respectively to the installation input of the buffer register, to the enable input of the first read unit and to the enable input of the second read unit, the fifth output of the firmware control unit § connected to the installation inputs of the memory nodes, the outputs of which are connected respectively to the first, second, third and fourth inputs of the microprogram control unit, the fifth input One of which is the start-up input of the device, the sixth output of the microprogram control unit is connected to the gates of the comparison blocks, the seventh and eighth outputs are connected respectively to the clock input of the register block and to the enable input of the multiplexer, the information inputs of the register block and the first readout node are connected to the outputs of the buffer register bits , the output of the register block is connected to the information input of the second read node. SU „„ 1188755 >SU „„ 1188755> ff
SU843731826A 1984-04-20 1984-04-20 Device for syntactic analysing of programs SU1188755A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843731826A SU1188755A1 (en) 1984-04-20 1984-04-20 Device for syntactic analysing of programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843731826A SU1188755A1 (en) 1984-04-20 1984-04-20 Device for syntactic analysing of programs

Publications (1)

Publication Number Publication Date
SU1188755A1 true SU1188755A1 (en) 1985-10-30

Family

ID=21115584

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843731826A SU1188755A1 (en) 1984-04-20 1984-04-20 Device for syntactic analysing of programs

Country Status (1)

Country Link
SU (1) SU1188755A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4783758A (en) * 1985-02-05 1988-11-08 Houghton Mifflin Company Automated word substitution using numerical rankings of structural disparity between misspelled words & candidate substitution words

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 690497, кл. G 06 F 15/38, 1977. Авторское свидетельство СССР № 362292, кл. G 06 F 3/04, 1970. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4783758A (en) * 1985-02-05 1988-11-08 Houghton Mifflin Company Automated word substitution using numerical rankings of structural disparity between misspelled words & candidate substitution words

Similar Documents

Publication Publication Date Title
SU1188755A1 (en) Device for syntactic analysing of programs
RU2012047C1 (en) Device for orthogonal converting digital signals
SU1176346A1 (en) Device for determining intersection of sets
SU686027A1 (en) Device for determining extremum numbers
SU830386A1 (en) Microprogramme-control device
SU1206806A1 (en) Device for editing list
SU1394239A1 (en) Logical storage device
SU1569847A1 (en) Device for fast actual matrix-fourier transform
SU1478215A1 (en) Microprogram control unit
RU1789993C (en) Device for editing table elements
SU378945A1 (en) FIRMWARE DEVICE
SU1278795A1 (en) Device for detecting word in bit sequence
SU1247877A1 (en) Device for debugging microcomputers
SU1302437A1 (en) Device for converting parallel code to serial code
SU670958A2 (en) Telemetry information processing device
SU1117648A1 (en) Stochastic (1,n)-port
SU1649533A1 (en) Numbers sorting device
SU620976A1 (en) Arrangement for comparing n binary numbers
SU1462281A1 (en) Function generator
SU1387004A2 (en) N-sensors-to-computer interface
SU1310834A1 (en) Device for information output from electronic computer to communication line
SU1430967A1 (en) Device for multiplying relational ratios
SU1509890A1 (en) Arrangement for forming structured files
SU1485245A1 (en) Error detector
SU771658A1 (en) Information input device