Skip to content

Commit

Permalink
«Каноническая» форма для образа обобщения (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed Jul 9, 2018
1 parent f70f2ce commit 3614730
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/compiler/GlobalGen-Ref.ref
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ Generalization-Pair {

(MN ':' s.NumL ',' (e.TermsL1) ',' (e.TermsL2))
(MN ':' s.NumR ',' (e.TermsR1) ',' (e.TermsR2))
= (
MN ':' <Min s.NumL s.NumR> ','
(<GeneralizationInPairs-Left (e.TermsL1) (e.TermsR1)>) ','
(<GeneralizationInPairs-Right (e.TermsL2) (e.TermsR2)>)
);
= <Lenw <GeneralizationInPairs-Left (e.TermsL1) (e.TermsR1)>>
: s.LenLeft e.Left
= <Lenw <GeneralizationInPairs-Right (e.TermsL2) (e.TermsR2)>>
: s.LenRight e.Right
= <Min s.NumL s.NumR <+ s.LenLeft s.LenRight>> : s.Min
= (MN ':' s.Min ',' (e.Left) ',' (e.Right));

(MN ':' s.NumL ',' (e.TermsL1) ',' (e.TermsL2))
(K ':' s.NumR ',' (e.TermsR))
Expand Down

0 comments on commit 3614730

Please sign in to comment.