Skip to content

Commit

Permalink
Рефакторинг, упрощающий дальнейшую работу (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed Aug 11, 2016
1 parent 90663a2 commit bf30cf5
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions src/compiler/LowLevelRASL.sref
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//FROM LibraryEx
$EXTERN Map, Fetch, Max, Inc, Compare, MapReduce;
$EXTERN Map, Fetch, Max, Seq, Inc, Compare, MapReduce;

//FROM Library
$EXTERN Add, StrFromInt;
Expand Down Expand Up @@ -467,24 +467,31 @@ Function-Body {
}

Function-Interpret {
e.Commands =
<PrepareOpenEStack
<OutlineConstants
(0 /* функции */)
(0 /* идентификаторы */)
(0 /* большие числа */)
(0 /* строки */)
(#CmdInitRAA)
<PrepareInterpretCommands e.Commands>
(#CmdFinRAA)
e.FunctionBody =
<Fetch
e.FunctionBody
<Seq
ConvertInterpretCommands
{
e.FunctionBody^ =
(#CmdInitRAA)
e.FunctionBody
(#CmdFinRAA);
}
(OutlineConstants
(0 /* функции */)
(0 /* идентификаторы */)
(0 /* большие числа */)
(0 /* строки */)
)
PrepareOpenEStack
{
e.FunctionBody^ =
e.FunctionBody
(#CmdiRunInterpret);
}
>
>
(#CmdiRunInterpret);
}

PrepareInterpretCommands {
e.Commands =
<ConvertInterpretCommands e.Commands>;
>;
}

ConvertInterpretCommands {
Expand Down

0 comments on commit bf30cf5

Please sign in to comment.