@@ -37,7 +37,10 @@ public struct ConditionalStatement {
|
|||||||
self.elss = .none
|
self.elss = .none
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(condition: EvaluatableExpression, withThen thenn: EvaluatableStatement, andElse elss: EvaluatableStatement) {
|
public init(
|
||||||
|
condition: EvaluatableExpression, withThen thenn: EvaluatableStatement,
|
||||||
|
andElse elss: EvaluatableStatement
|
||||||
|
) {
|
||||||
self.condition = condition
|
self.condition = condition
|
||||||
self.thenn = thenn
|
self.thenn = thenn
|
||||||
self.elss = elss
|
self.elss = elss
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ extension ConditionalStatement: EvaluatableStatement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extension ExpressionStatement: EvaluatableStatement {
|
extension ExpressionStatement: EvaluatableStatement {
|
||||||
public func evaluate(execution: ProgramExecution) -> ProgramExecution {
|
public func evaluate(execution: ProgramExecution) -> ProgramExecution {
|
||||||
return execution
|
return execution
|
||||||
|
|||||||
Reference in New Issue
Block a user