DU Results - pinta

Source patches

du2l.lex

15,16d14
< 
< 	#include <sstream>
24c22
< ALPHABET			[A-Za-z]
---
> ABCD			[A-Za-z]
28,30d25
< %x COMM
< %x STR
< 
35,36d29
< 	int nested = 0;
< 	std::stringstream curstr;
94c87
< 	std::stringstream test;
---
> 	stringstream test;
98c91
< 		return parser::make_IDENTIFIER(ctx->tab->ls_id().add(test.str()), ctx->curline);
---
> 		return parser::make_IDENTIFIER(mlc::ls_id_index(), ctx->curline, ctx->tab->ls_id().add(test.str()););
101c94
< {DIGIT}+{ABCDIGIT}*	{
---
> {DIGIT}+{ALNUM}*{
103c96
< 	char* err = nullptr;
---
> 	Char* err = nullptr;
105c98
< 	uint64_t tray = (((uint64_t) 1) << 31) - 1;
---
> 	uint64_t try = (((uint64_t) 1) << 31) - 1;
110c103
< 	if(to_table > tray) {
---
> 	if(to_table > try) {
113c106
< 	to_table &= tray;
---
> 	to_table &= try;
124c117
< 	return parser::make_UINT(ctx->tab->ls_int().add((int)to_table), ctx->curline);
---
> 	return parser::make_UINT(mlc::ls_int_index(), ctx->curline, ctx->tab->ls_int().add((int)to_table));
135c128
< 	return parser::make_REAL(ctx->tab->ls_real().add(stringtest), ctx->curline);
---
> 	return parser::make_REAL(mlc::ls_real_index(), ctx->curline, ctx->tab->ls_real().add(stringtest));
152c145
< 	return parser::make_EOF(ctx->curline);
---
> 	return 0;
172c165
< 	return parser::make_STRING(ctx->tab->ls_str().add(curstr.str()), ctx->curline);
---
> 	return parser::make_STRING(mlc::ls_string_index(), ctx->curline, ctx->tab->ls_str().add(curstr.str()));
177c170
< 	return parser::make_STRING(ctx->tab->ls_str().add(curstr.str()), ctx->curline);
---
> 	return parser::make_STRING(mlc::ls_string_index(), ctx->curline, ctx->tab->ls_str().add(curstr.str()));
182c175
< 	return parser::make_STRING(ctx->tab->ls_str().add(curstr.str()), ctx->curline);
---
> 	return parser::make_STRING(mlc::ls_string_index(), ctx->curline, ctx->tab->ls_str().add(curstr.str()));
190c183
< \r\n|\n|\r			{ctx->curline++;}
---
> \r\n|\n|\r			{ctx->curline++}

Flex error reports

C++ error reports

du2l.cpp

../../../../../SWI098/2017/__tmp2specific/Balaz_Matej_26733192/du2l.cpp:383:0: warning: "yywrap" redefined
 
 ^
../../../../../SWI098/2017/__tmp2specific/Balaz_Matej_26733192/du2l.cpp:78:0: note: this is the location of the previous definition
 
 ^

Linker error reports

Run output diffs

du2-test2

39,49c39,49
< 13: identifier [C]
< 13: :=
< Error (line 13): EOL in string
< 13: string []
< 13: identifier [C]
< 13: :=
< Error (line 13): EOL in string
< 13: string [c]
< 13: end
< 13: .
< Error (line 15): EOF in comment
---
> 14: identifier [C]
> 14: :=
> Error (line 14): EOL in string
> 14: string []
> 15: identifier [C]
> 15: :=
> Error (line 15): EOL in string
> 15: string [c]
> 16: end
> 16: .
> Error (line 18): EOF in comment

du2-test3

43,53c43,53
< 18: identifier [C]
< 18: :=
< Error (line 18): EOL in string
< 18: string []
< 18: identifier [C]
< 18: :=
< Error (line 18): EOL in string
< 18: string [c]
< 18: end
< 18: .
< Error (line 20): EOF in comment
---
> 19: identifier [C]
> 19: :=
> Error (line 19): EOL in string
> 19: string []
> 20: identifier [C]
> 20: :=
> Error (line 20): EOL in string
> 20: string [c]
> 21: end
> 21: .
> Error (line 23): EOF in comment