normDDe (1158428), страница 2

Файл №1158428 normDDe (Раздаточные материалы) 2 страницаnormDDe (1158428) страница 22019-09-18СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 2)

<statement number> ::=<integer>

3.4List of iterations

List of iterations is used for holding iterations of Norma program in the form of structured sequence of tokens. It is created at the stage of part unit scanner and used for building Table of iterations structure and for passing iterations to be executed in Part unit parser. List of iterations is a temporary structure of compiler's data. After end of Part unit scanner work it isn't used anymore.

Norma program operators included into iteration are represented by references to the elements of List of Norma statements. Embedding structure of the iterations remains the same.

Structure of List of iterations:

iteration

iteration

iteration

Structure of <iteration> element:

iteration number

head-of-iteration

list of boundary operators

list of initial operators

body-of-iteration

exit-condition

end-iteration

<iteration number> ::=<integer>

<iteration number> - a unique number of iteration

<head-of-iteration> ::=<sequence of token codes for head-of-iteration >

< list of boundary operators > - list <statement number> (group e,f,g) from List of Norma statements:

statement number

statement number

statement number

<statement number> ::=<integer>

<list of initial operators> - list <statement number> (group e,f,g) from List of Norma statements

statement number

statement number

statement number

<statement number> ::=<integer>

<body-of-iteration> - list <statement number> (group g) from List of Norma statements or iteration elements (this is a way to represent embedded iterations).

body element

body element

body element

<body element ::= <statement number> OR <iteration>

<statement number> ::=<integer>

<exit-condition> ::=<statement number>

<exit condition> - <statement number> (group g) from List of Norma statements

<end-iteration> ::=<sequence of token codes for end-iteration >

3.5Table of iterations structure

Table of iterations structure is used for holding iterations' structure in the form applied to execution in units Part unit parser’s, Data dependencies graph builder, Data dependencies graph analyser, FORTRAN DVM intermediate representation generator.

Line of Table of iterations structure has the following form:

iteration number

token-code of iteration index

list of iterated variables

list of enclosed iterations

list of boundary operators

list of initial operators

list of body operators

<list of iterated variables> - list of iterated variables' names and corresponding names of result variables ( from the previous and current iterations )

iterated variable name

first result variable name

second result variable name

iterated

first

second

< list of enclosed iterations > - references to <iteration number> from Table of iterations structure:

iteration number

iteration number

<iteration number> ::=<integer>

< list of boundary operators > - list <statement number> (group e,f,g) from List of Norma statements

statement number

statement number

statement number

<statement number> ::=<integer>

<list of initial operators> - list <statement number> (group e,f,g) from List of Norma statements

statement number

statement number

statement number

<statement number> ::=<integer>

< list of body operators > - list <statement number> (group g) from List of Norma statements

statement number

statement number

statement number

<statement number> ::=<integer>

3.6Statements-lines table

Statements-lines table is used for holding information about the location of Norma program statements in the lines of <source-file>.

Line of Statements-lines table has the following form :

statement number

begin line number

end line number

<statement number> ::=<integer>

<begin line number> ::=<integer>

<end line number> ::=<integer>

This information means that Norma statement with number <statement number> from List of Norma statements begins in the source file from the line with number <begin line number> and ends at the line with number <end line number>.

3.7Table of ordered groups

Table of ordered groups is used for holding information about those Norma program operators which the mode of sequential computations is set for.

Structure of Table of ordered groups:

ordered group

ordered group

...

Structure of <ordered group> element:

statement number

statement number

statement number

<statement number> ::=<integer>

This information means that mode of sequential computations is set for Norma - operators with numbers <statement number> from Table of ordered groups.

3.8List of errors

List of errors is used for holding information about errors and warnings in Norma program. This information has internal representation.

Structure of List of errors:

errors in lines

errors in lines

errors in lines

Structure of <errors in lines> element:

error context

error code

error context

error code

begin line number

end line number

<error context>::=<sequence of token codes>

<error code>::=<integer>

<begin line number> ::=<integer>

<end line number> ::=<integer>

Each error is represented by pair <error context><error code>.

Element errors in lines gives information about all the errors with defined <error context><error code> in lines <begin line number>-<end line number> of the source file.

Information about error is put into List of errors by function ero with parameters

<error context><error code><statement number>

For the errors related to the program as a whole <statement number>=’*’.

3.9Table of domains

Table of domains is used for holding information about domains used in Norma-program. In domains processing we also use some supplementary data structures: Table of ranges, Table of conditions, Table of diagonals.

Line of Table of domains has the form:

name of domain

shape

indexes

subdomains

conditional

<name of domain>::=<token code>

<shape>::=<integer>

<indexes>::=<sequence of tokens>

<subdomains>::=<name of domain> OR <name of range>

<conditional>::=<condition number>Y OR <condition number>N

<shape> - domain's dimension (number of indexes)

<indexes> - list of domain's indexes

<subdomains> - names of elementary (one-dimensional) subsets which Cartesian product makes given set. If set is elementary (i.e. <shape>=1), then <subdomain> is a reference to the line of additional Table of ranges.

<conditional> - empty field for unconditional domains; for conditional domains it has a reference to the line in Table of conditions and attribute of condition's truth: Y - true, N - false. It is possible to define only one pair of conditional domains in one declaration in the Norma language: the first domain corresponds to the condition with true value and the second one - to the condition with false value. After processing such a declaration two lines are put into Table of domains, they differ from each other only in attributes Y and N but the references to Table of conditions coincide.

3.9.1Table of ranges

Line of Table of ranges has the form:

name of range

begin of range

end of range

<name of range>::=<token code>

Характеристики

Список файлов учебной работы

Свежие статьи
Популярно сейчас
Почему делать на заказ в разы дороже, чем купить готовую учебную работу на СтудИзбе? Наши учебные работы продаются каждый год, тогда как большинство заказов выполняются с нуля. Найдите подходящий учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
7021
Авторов
на СтудИзбе
260
Средний доход
с одного платного файла
Обучение Подробнее