DU Results - pinta

Source patches

du1l.lex

32,54c32,54
< (?i:PROGRAM)		{ return parser::make_PROGRAM(ctx->curline); }	
< (?i:LABEL)		{ return parser::make_LABEL(ctx->curline); }
< (?i:CONST)		{ return parser::make_CONST(ctx->curline); }
< (?i:TYPE)			{ return parser::make_TYPE(ctx->curline); }
< (?i:VAR)			{ return parser::make_VAR(ctx->curline); }
< (?i:BEGIN)		{ return parser::make_BEGIN(ctx->curline); }
< (?i:END)			{ return parser::make_END(ctx->curline); }
< (?i:PROCEDURE)	{ return parser::make_PROCEDURE(ctx->curline); }
< (?i:FUNCTION)		{ return parser::make_FUNCTION(ctx->curline); }
< (?i:ARRAY)		{ return parser::make_ARRAY(ctx->curline); }
< (?i:OF)			{ return parser::make_OF(ctx->curline); }
< (?i:GOTO)			{ return parser::make_GOTO(ctx->curline); }
< (?i:IF)			{ return parser::make_IF(ctx->curline); }
< (?i:THEN)			{ return parser::make_THEN(ctx->curline); }
< (?i:ELSE)			{ return parser::make_ELSE(ctx->curline); }
< (?i:WHILE)		{ return parser::make_WHILE(ctx->curline); }
< (?i:DO)			{ return parser::make_DO(ctx->curline); }
< (?i:REPEAT)		{ return parser::make_REPEAT(ctx->curline); }
< (?i:UNTIL)		{ return parser::make_UNTIL(ctx->curline); }
< (?i:FOR)			{ return parser::make_FOR(ctx->curline); }
< (?i:OR)			{ return parser::make_OR(ctx->curline); }
< (?i:NOT)			{ return parser::make_NOT(ctx->curline); }
< (?i:RECORD)		{ return parser::make_RECORD(ctx->curline); }
---
> /PROGRAM/i		{ return parser::make_PROGRAM(ctx->curline); }	
> /LABEL/i		{ return parser::make_LABEL(ctx->curline); }
> /CONST/i		{ return parser::make_CONST(ctx->curline); }
> /TYPE/i			{ return parser::make_TYPE(ctx->curline); }
> /VAR/i			{ return parser::make_VAR(ctx->curline); }
> /BEGIN/i		{ return parser::make_BEGIN(ctx->curline); }
> /END/i			{ return parser::make_END(ctx->curline); }
> /PROCEDURE/i	{ return parser::make_PROCEDURE(ctx->curline); }
> /FUNCTION/i		{ return parser::make_FUNCTION(ctx->curline); }
> /ARRAY/i		{ return parser::make_ARRAY(ctx->curline); }
> /OF/i			{ return parser::make_OF(ctx->curline); }
> /GOTO/i			{ return parser::make_GOTO(ctx->curline); }
> /IF	/i			{ return parser::make_IF(ctx->curline); }
> /THEN/i			{ return parser::make_THEN(ctx->curline); }
> /ELSE/i			{ return parser::make_ELSE(ctx->curline); }
> /WHILE/i		{ return parser::make_WHILE(ctx->curline); }
> /DO/i			{ return parser::make_DO(ctx->curline); }
> /REPEAT/i		{ return parser::make_REPEAT(ctx->curline); }
> /UNTIL/i		{ return parser::make_UNTIL(ctx->curline); }
> /FOR/i			{ return parser::make_FOR(ctx->curline); }
> /OR/i			{ return parser::make_OR(ctx->curline); }
> /NOT/i			{ return parser::make_NOT(ctx->curline); }
> /RECORD/i		{ return parser::make_RECORD(ctx->curline); }
70c70
< [0-9]+.[0-9]+([+-]E[1-9][0-9]*)?  {	return parser::make_REAL(mlc::ls_real_index(), ctx->curline); }	 
---
> [0-9]+.[0-9]+{[+-]E[1-9][0-9]*}?  {	return parser::make_REAL(mlc::ls_int_index(), ctx->curline) }	 

Flex error reports

C++ error reports

du1l.cpp

../../../../../SWI098/2017/__tmp1specific/GuthJarkovsky_Tomas_88207420/du1l.cpp:383:0: warning: "yywrap" redefined
 
 ^
../../../../../SWI098/2017/__tmp1specific/GuthJarkovsky_Tomas_88207420/du1l.cpp:78:0: note: this is the location of the previous definition
 
 ^
cc1plus: warning: unrecognized command line option ‘-Wno-ignored-attributes’

Linker error reports

Run output diffs

du1-test1

2,9c2
< Error (line 1): Unknown character 'd'(0x64) on the input
< Error (line 1): Unknown character 'u'(0x75) on the input
< 1: unsigned integer 0
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 's'(0x73) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
< 1: unsigned integer 0
---
> 1: identifier
11d3
< 
15d6
< 
17,20c8
< Error (line 1): Unknown character 'i'(0x69) on the input
< Error (line 1): Unknown character 'p'(0x70) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
23,34c11,13
< Error (line 1): Unknown character 'i'(0x69) on the input
< Error (line 1): Unknown character 'n'(0x6e) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'g'(0x67) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'r'(0x72) on the input
< 1: ;
< 
< Error (line 1): Unknown character 'R'(0x52) on the input
< Error (line 1): Unknown character 'G'(0x47) on the input
< Error (line 1): Unknown character 'B'(0x42) on the input
---
> 1: identifier
> 1: ;
> 1: identifier
37,39c16
< Error (line 1): Unknown character 'R'(0x52) on the input
< Error (line 1): Unknown character 'E'(0x45) on the input
< Error (line 1): Unknown character 'D'(0x44) on the input
---
> 1: identifier
41,45c18
< Error (line 1): Unknown character 'G'(0x47) on the input
< Error (line 1): Unknown character 'R'(0x52) on the input
< Error (line 1): Unknown character 'E'(0x45) on the input
< Error (line 1): Unknown character 'E'(0x45) on the input
< Error (line 1): Unknown character 'N'(0x4e) on the input
---
> 1: identifier
47,50c20
< Error (line 1): Unknown character 'B'(0x42) on the input
< Error (line 1): Unknown character 'L'(0x4c) on the input
< Error (line 1): Unknown character 'U'(0x55) on the input
< Error (line 1): Unknown character 'E'(0x45) on the input
---
> 1: identifier
53d22
< 
55c24
< Error (line 1): Unknown character 'i'(0x69) on the input
---
> 1: identifier
57c26
< Error (line 1): Unknown character 'j'(0x6a) on the input
---
> 1: identifier
59c28
< Error (line 1): Unknown character 'k'(0x6b) on the input
---
> 1: identifier
61,67c30
< Error (line 1): Unknown character 'i'(0x69) on the input
< Error (line 1): Unknown character 'n'(0x6e) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'g'(0x67) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
69,70c32
< 
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
72,75c34
< Error (line 1): Unknown character 'r'(0x72) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'a'(0x61) on the input
< Error (line 1): Unknown character 'l'(0x6c) on the input
---
> 1: identifier
77d35
< 
79d36
< 
81c38
< Error (line 1): Unknown character 'i'(0x69) on the input
---
> 1: identifier
84,85c41
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'o'(0x6f) on the input
---
> 1: for direction to
88d43
< 
90,91c45
< 
< Error (line 1): Unknown character 'j'(0x6a) on the input
---
> 1: identifier
93,94c47,48
< Error (line 1): Unknown character 'i'(0x69) on the input
< Error (line 1): Unknown character '*'(0x2a) on the input
---
> 1: identifier
> 1: mul oper *
97,98c51
< 
< Error (line 1): Unknown character 'k'(0x6b) on the input
---
> 1: identifier
100,103c53,54
< Error (line 1): Unknown character 'j'(0x6a) on the input
< Error (line 1): Unknown character 'm'(0x6d) on the input
< Error (line 1): Unknown character 'o'(0x6f) on the input
< Error (line 1): Unknown character 'd'(0x64) on the input
---
> 1: identifier
> 1: mul oper mod
106,107c57,58
< Error (line 1): Unknown character '+'(0x2b) on the input
< Error (line 1): Unknown character 'i'(0x69) on the input
---
> 1: sign/add oper +
> 1: identifier
110d60
< 
112,114c62,63
< Error (line 1): Unknown character 'k'(0x6b) on the input
< Error (line 1): Unknown character '>'(0x3e) on the input
< 1: =
---
> 1: identifier
> 1: rel oper >=
117d65
< 
121d68
< 
123d69
< 
126,127c72
< 
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
129,130c74,75
< Error (line 1): Unknown character 'k'(0x6b) on the input
< Error (line 1): Unknown character '*'(0x2a) on the input
---
> 1: identifier
> 1: mul oper *
133,134c78
< 
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
136,137c80,81
< Error (line 1): Unknown character 'r'(0x72) on the input
< Error (line 1): Unknown character '/'(0x2f) on the input
---
> 1: identifier
> 1: mul oper /
140d83
< 
143,144c86
< 
< There were some errors 69 and warnings 0
---
> There were some errors 1 and warnings 0

du1-test2

2,9c2
< Error (line 1): Unknown character 'd'(0x64) on the input
< Error (line 1): Unknown character 'u'(0x75) on the input
< 1: unsigned integer 0
< Error (line 1): Unknown character 't'(0x74) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 's'(0x73) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
< 1: unsigned integer 0
---
> 1: identifier
11,15c4
< 
< Error (line 1): Unknown character 'l'(0x6c) on the input
< Error (line 1): Unknown character 'a'(0x61) on the input
< Error (line 1): Unknown character 'b'(0x62) on the input
< Error (line 1): Unknown character 'l'(0x6c) on the input
---
> 1: identifier
18d6
< 
20c8
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
22,24c10
< Error (line 1): Unknown character 'r'(0x72) on the input
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character 'l'(0x6c) on the input
---
> 1: identifier
26,27c12
< 
< Error (line 1): Unknown character 'k'(0x6b) on the input
---
> 1: identifier
30,32c15
< Error (line 1): Unknown character 'i'(0x69) on the input
< Error (line 1): Unknown character 'n'(0x6e) on the input
< Error (line 1): Unknown character 't'(0x74) on the input
---
> 1: identifier
34d16
< 
36,37c18
< 
< Error (line 1): Unknown character 'r'(0x72) on the input
---
> 1: identifier
39,42c20
< 1: unsigned integer 0
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character '+'(0x2b) on the input
< 1: unsigned integer 0
---
> 1: real number 0
44c22
< Error (line 1): Unknown character '+'(0x2b) on the input
---
> 1: sign/add oper +
46,47c24
< Error (line 1): Unknown character 'e'(0x65) on the input
< Error (line 1): Unknown character '-'(0x2d) on the input
---
> 1: sign/add oper +
49,51c26
< 1: .
< 1: unsigned integer 0
< Error (line 1): Unknown character 'E'(0x45) on the input
---
> 1: identifier
53d27
< 
56,57c30
< 
< There were some errors 26 and warnings 0
---
> There were some errors 1 and warnings 0