Skip to content

Commit 59466c0

Browse files
committed
Updated Parser to have a public modifier
1 parent 4665dd6 commit 59466c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

MathParser.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ MathParser is a pod that parses strings to decimal values. It allows addition, s
3131
s.ios.deployment_target = '8.0'
3232

3333
s.source_files = 'MathParser/Classes/**/*'
34+
35+
s.swift_version = '5.0'
3436

3537
# s.resource_bundles = {
3638
# 'MathParser' => ['MathParser/Assets/*.png']

MathParser/Classes/Source/Parser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Parser {
1313
/// Will return nil if the string is not parseable.
1414
/// - parameter string: The string to parse
1515
/// - returns: An expression that will result in the value
16-
static func parse(string: String) -> Expression? {
16+
public static func parse(string: String) -> Expression? {
1717
let updatedString = Parser.changeMinusIntoOther(change: Operators.subOp, into: string)
1818
guard updatedString.contains(Operators.divOp) || updatedString.contains(Operators.multOp) || updatedString.contains(Operators.addOp) || updatedString.contains(Operators.subOp) || updatedString.contains(Operators.powOp) || Decimal(string) != nil else {
1919
return nil

0 commit comments

Comments
 (0)