Рабочие изменения
This commit is contained in:
parent
4a96058739
commit
334c881540
|
|
@ -3009,8 +3009,11 @@ public partial class GPPGParser: ShiftReduceParser<PascalABCSavParser.Union, Lex
|
|||
}
|
||||
break;
|
||||
case 103: // var_decl_sect -> var_decl_sect, var_decl
|
||||
{
|
||||
CurrentSemanticValue.stn = (ValueStack[ValueStack.Depth-2].stn as variable_definitions).Add(ValueStack[ValueStack.Depth-1].stn as var_def_statement, CurrentLocationSpan);
|
||||
{
|
||||
var vdn = ValueStack[ValueStack.Depth - 2].stn as variable_definitions;
|
||||
var vds = ValueStack[ValueStack.Depth - 1].stn as var_def_statement;
|
||||
|
||||
CurrentSemanticValue.stn = vdn.Add(vds, CurrentLocationSpan);
|
||||
}
|
||||
break;
|
||||
case 104: // var_decl_sect -> tkVar, tkRoundOpen, identifier, tkComma, ident_list,
|
||||
|
|
|
|||
4
TestSuite/errors/err0301.pas
Normal file
4
TestSuite/errors/err0301.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var f: integer->integer := x->2*Result;
|
||||
|
||||
begin
|
||||
end.
|
||||
Loading…
Reference in a new issue