Skip to content

Commit

Permalink
FIXED: встраивание функций <F*n …> (#122, #239)
Browse files Browse the repository at this point in the history
Прогонка для функций <F*n …> работала, а встраивание — нет, из-за чего
в сгенерированном коде оставались вызовы <Apply*1 (&F e.B) e.A>.
  • Loading branch information
Mazdaywik committed Aug 1, 2019
1 parent c62a7c1 commit 6d8d2d0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/compiler/OptTree-Drive.ref
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,18 @@ DropLeft {
*/

FindInlineInfo {
t.InlineInfo e.Name
, e.Name : e.Prefix '*' s.N
, <CutSUF e.Prefix> : e.Prefix^
, t.InlineInfo
: (
(e.B1 (e.Prefix) e.E1)
e.B2 (Inline s.ScopeClass (e.Prefix) s.Body) e.E2
)
= <s.Body> : Sentences e.Sentences
= Success
(Inline s.ScopeClass (e.Name) Sentences <DropLeft e.Sentences s.N>);

t.InlineInfo e.Name
, t.InlineInfo
: ((e.B1 (e.Name) e.E1) e.B2 (Inline s.ScopeClass (e.Name) s.Body) e.E2)
Expand Down

0 comments on commit 6d8d2d0

Please sign in to comment.