Skip to content

Commit

Permalink
Fixed #13 — исправлены ошибки в генерации интерпретируемого кода
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazdaywik committed Jan 19, 2016
1 parent 59815c1 commit 23b2db3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/Generator.sref
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ GenCommand {
}
e.LabelNames
>
(e.Indent ' & idents_' e.LastName '<int>::name')
(e.Indent ' & ident_' e.LastName '<int>::name')
(e.Indent '};');

(e.Indent) (#CmdiNumberArray) =
Expand Down Expand Up @@ -502,7 +502,7 @@ GenCommand {
(e.Indent) (#CmdiChar s.Direction s.BracketNumber s.Char) =
(e.Indent)
(e.Indent '{refalrts::icChar' <PrintDirection s.Direction> ', '
'0, (int)' '' <Escape s.Char> '' ', '
'0, static_cast<unsigned char>(' '' <Escape s.Char> '' '), '
<StrFromInt s.BracketNumber> '},'
)
;
Expand Down Expand Up @@ -573,7 +573,7 @@ GenCommand {
)
(e.Indent 'refalrts::FnResult res = refalrts::interpret_array(')
(e.Indent ' raa, allocs, context, arg_begin, arg_end,')
(e.Indent ' functions, labels, numbers, open_e_stack')
(e.Indent ' functions, idents, numbers, open_e_stack')
(e.Indent ');')
(e.Indent 'if ( res == refalrts::cRecognitionImpossible )')
(e.Indent ' break;')
Expand Down

0 comments on commit 23b2db3

Please sign in to comment.