Skip to content

Commit

Permalink
Исправлены предупреждения -Wrepeated в src/compiler (bmstu-iu9#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed Mar 8, 2021
1 parent 34df5c8 commit a1aa6ab
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/compiler/Desugaring.ref
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ ExtractNested-Result-Term {
(Symbol Name e.ClosureName);

/* Случай функции с контекстом */
(e.NestedBorrowedVars) Sentences e.Sentences
(e.NestedBorrowedVars^) Sentences e.Sentences
= <CreateContext s.MarkupContext e.NestedBorrowedVars> : e.Context
= (Function
GN-Local (e.ClosureName)
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/GlobalGen.ref
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ GlobalGenFromLocalGen {
= <Max s.NumAcc s.NumNext>
: {
s.NumAcc = (s.NumAcc e.SentenceAcc);
s.NumNext = (s.NumNext e.SentenceNext);
s._ = (s.NumNext e.SentenceNext);
};
}
t.Sentence
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/HighLevelRASL-ConjointFunc.ref
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ DoFindDivision {
= ForGroup (<Subst-Collapse e.Image>) (e.FirstGroup) e.SecondGroup;

s.Counter (e.TrivialGCG) (e.Image) (e.FirstGroup) (e.NextSentence) e.Sentences
= <ImagedSentence e.NextSentence> : (e.NextImage) e.NextSentence
= <ImagedSentence e.NextSentence> : (e.NextImage) e.NextSentence^
= <Subst-Generalization (e.Image) (e.NextImage)> : e.NewImage
= e.NewImage
: {
Expand Down
6 changes: 3 additions & 3 deletions src/compiler/OptTree-Spec.ref
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ SpecSentence {
(e.SpecInfo (e.Histories) (e.History) (e.NewFunctions))
e.Result
>
: (e.SpecInfo^ (e.Histories^) (e.History) (e.NewFunctions^)) e.Result^
: (e.SpecInfo^ (e.Histories^) (e.History^) (e.NewFunctions^)) e.Result^
= (e.SpecInfo (e.Histories) (e.History) (e.NewFunctions))
((e.Pattern) e.Conditions (e.Result));
}
Expand All @@ -350,7 +350,7 @@ SpecResult {
Functions (e.SpecInfo (e.Histories) (e.History) (e.NewFunctions))
e.Result
>
: (e.SpecInfo^ (e.Histories^) (e.History) (e.NewFunctions^)) e.Result^
: (e.SpecInfo^ (e.Histories^) (e.History^) (e.NewFunctions^)) e.Result^
= <SpecResult-Pass
Closures (e.SpecInfo (e.Histories) (e.History) (e.NewFunctions))
e.Result
Expand Down Expand Up @@ -1143,7 +1143,7 @@ MapGenericMatches {
((e.ArgStaticMatches) (/* for result */))
e.PatternStaticMatches
>
: ((e.ArgStaticMatches) (e.ResultMatches))
: ((e._) (e.ResultMatches))
= e.ResultMatches;
}

Expand Down
6 changes: 3 additions & 3 deletions src/compiler/R5-Lexer.ref
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ HexDigit {
s.Digit
, <Type s.Digit>
: {
'D0' s.Digit = <Numb s.Digit>;
'Lu' s.Digit = <DoHexDigit 'ABCDEF' 10 s.Digit>;
'Ll' s.Digit = <DoHexDigit 'abcdef' 10 s.Digit>;
'D0' s.Digit^ = <Numb s.Digit>;
'Lu' s.Digit^ = <DoHexDigit 'ABCDEF' 10 s.Digit>;
'Ll' s.Digit^ = <DoHexDigit 'abcdef' 10 s.Digit>;

s.Other = /* пусто */;
};
Expand Down
6 changes: 3 additions & 3 deletions src/compiler/R5-Parser.ref
Original file line number Diff line number Diff line change
Expand Up @@ -446,18 +446,18 @@ Block-AfterSentence {
(Sentences e.Sentences t.NextSentence)
e.Tokens;

(TkCloseBlock t.Pos) t.Token2
(TkCloseBlock t.Pos) t._
= t.ErrorList
(Sentences e.Sentences t.NextSentence)
t.Token2 e.Tokens;

(TkSemicolon t.Pos) t.Token2
(TkSemicolon t.Pos) t._
= <Block-AfterSentence
s.Mode (e.Sentences t.NextSentence)
<Sentence t.ErrorList s.Mode t.Token2 e.Tokens>
>;

t.Token1 t.Token2
t._ t._
= <UnexpectedToken t.ErrorList t.Token1 '\';\' or \'}\', skipped'>
: t.ErrorList^
= <Block-AfterSentence
Expand Down

0 comments on commit a1aa6ab

Please sign in to comment.