Разрешены reduce/reduce конфликты связанные с паттерн матчингом
This commit is contained in:
parent
f601f8af3d
commit
d6bef4694d
|
|
@ -1,9 +1,9 @@
|
|||
//
|
||||
// This CSharp output file generated by Gardens Point LEX
|
||||
// Version: 1.1.3.301
|
||||
// Machine: DESKTOP-G8V08V4
|
||||
// DateTime: 18.06.2019 14:40:06
|
||||
// UserName: ?????????
|
||||
// Machine: DESKTOP-IF20NRO
|
||||
// DateTime: 6/19/2019 11:22:12 AM
|
||||
// UserName: FatCow
|
||||
// GPLEX input file <ABCPascal.lex>
|
||||
// GPLEX frame file <embedded resource>
|
||||
//
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
%type <stn> attribute_declarations
|
||||
%type <stn> ot_visibility_specifier
|
||||
%type <stn> one_attribute attribute_variable
|
||||
%type <ex> const_factor const_variable_2 const_term const_variable const_pattern_variable_2 const_pattern_variable literal_or_number unsigned_number variable_or_literal_or_number
|
||||
%type <ex> const_factor const_variable_2 const_term const_variable const_pattern_variable literal_or_number unsigned_number variable_or_literal_or_number
|
||||
%type <stn> program_block
|
||||
%type <ob> optional_var class_attribute class_attributes class_attributes1
|
||||
%type <stn> member_list_section optional_component_list_seq_end
|
||||
|
|
@ -898,7 +898,7 @@ const_pattern_variable
|
|||
{ $$ = $1; }
|
||||
| typeof_expr
|
||||
{ $$ = $1; }
|
||||
| const_pattern_variable const_pattern_variable_2
|
||||
/*| const_pattern_variable const_pattern_variable_2
|
||||
{
|
||||
$$ = NewConstVariable($1, $2, @$);
|
||||
}
|
||||
|
|
@ -917,9 +917,10 @@ const_pattern_variable
|
|||
fe.format1 = new int32_const(int.MaxValue,@3);
|
||||
}
|
||||
$$ = new slice_expr($1 as addressed_value,fe.expr,fe.format1,fe.format2,@$);
|
||||
}
|
||||
}*/
|
||||
;
|
||||
|
||||
/*
|
||||
const_pattern_variable_2
|
||||
: tkPoint identifier_or_keyword
|
||||
{
|
||||
|
|
@ -935,6 +936,7 @@ const_pattern_variable_2
|
|||
$$ = new indexer($2 as expression_list, @$);
|
||||
}
|
||||
;
|
||||
*/
|
||||
|
||||
const_variable
|
||||
: identifier
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +0,0 @@
|
|||
begin
|
||||
var l: (A, B, C);
|
||||
match l with
|
||||
l.B: assert(false);
|
||||
l.A: assert(true);
|
||||
end;
|
||||
end.
|
||||
Loading…
Reference in a new issue