Macro expander integrated in binder
This commit is contained in:
@@ -366,7 +366,13 @@ begin
|
||||
if not (Length(tailNodes) in [2, 3]) then
|
||||
raise Exception.Create('Syntax Error in if statement.');
|
||||
|
||||
Result := TAst.IfExpr(tailNodes[0], tailNodes[1], IfThen(Length(tailNodes) > 2, tailNodes[2], nil))
|
||||
Result :=
|
||||
TAst.IfExpr(
|
||||
tailNodes[0],
|
||||
tailNodes[1],
|
||||
if Length(tailNodes) > 2 then tailNodes[2]
|
||||
else nil
|
||||
)
|
||||
end
|
||||
else if SameText(head.Token.Text, '?') then
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user