We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e5195 commit 055842aCopy full SHA for 055842a
PascalInterpreter.playground/Contents.swift
@@ -17,4 +17,4 @@ let interpeter = Interpreter("7 + 3 * (10 / (12 / (3 + 1) - 1)) / (2 + 3) - 5 -
17
interpeter.eval()
18
19
let parser = Parser("2 * (7 + 3) ")
20
-print(parser.expr().asString)
+print(parser.expr())
SwiftPascalInterpreter/SwiftPascalInterpreter/Extensions.swift
@@ -97,8 +97,8 @@ extension Interpreter: CustomStringConvertible {
97
}
98
99
100
-extension AST {
101
- public var asString: String {
+extension AST: CustomStringConvertible {
+ public var description: String {
102
return treeString(self, using: { node in
103
switch node {
104
case let .number(value):
0 commit comments