-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
22 lines (22 loc) · 1.07 KB
/
output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
RW_PROGRAM IDENTIFIER_EXEMPLO1
RW_VAR
IDENTIFIER_N SS_COMMA IDENTIFIER_S SS_COMMA IDENTIFIER_I SS_COLON RW_INTEGER SS_SEMICOLON
RW_PROCEDURE IDENTIFIER_SOMA SS_SEMICOLON
RW_VAR IDENTIFIER_Q SS_COLON RW_INTEGER SS_SEMICOLON
RW_BEGIN
IDENTIFIER_Q SS_ASSIGN IDENTIFIER_I SS_MULTIPLY IDENTIFIER_I SS_SEMICOLON
RW_IF SS_OPEN_PARENTHESIS IDENTIFIER_I RW_DIV NUMBER_2 SS_CLOSE_PARENTHESIS SS_MULTIPLY NUMBER_2 SS_EQUAL IDENTIFIER_I RW_THEN
IDENTIFIER_S SS_ASSIGN IDENTIFIER_S SS_PLUS IDENTIFIER_Q SS_SEMICOLON
RW_ELSE
IDENTIFIER_S SS_ASSIGN IDENTIFIER_S SS_MINUS IDENTIFIER_Q SS_SEMICOLON
RW_END
RW_BEGIN
IDENTIFIER_READ SS_OPEN_PARENTHESIS IDENTIFIER_N SS_CLOSE_PARENTHESIS SS_SEMICOLON
IDENTIFIER_S SS_ASSIGN NUMBER_0 SS_SEMICOLON IDENTIFIER_I SS_ASSIGN NUMBER_0 SS_SEMICOLON
RW_WHILE IDENTIFIER_I SS_LESS SS_EQUAL IDENTIFIER_N RW_DO
RW_BEGIN
IDENTIFIER_SOMA SS_SEMICOLON
IDENTIFIER_WRITE SS_OPEN_PARENTHESIS IDENTIFIER_S SS_CLOSE_PARENTHESIS SS_SEMICOLON
IDENTIFIER_I SS_ASSIGN IDENTIFIER_I SS_PLUS NUMBER_1 SS_SEMICOLON
RW_END
RW_END SS_DOT