Skip to content

Commit 1014eb9

Browse files
committed
add comments
1 parent 46f40c8 commit 1014eb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/HatchExample/HatchExample.swift

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Hatch
66
public struct ExampleApp {
77
public static func main() throws {
88

9+
// MARK: - Example of parsing a string
10+
911
let source = """
1012
1113
struct A1 {
@@ -36,6 +38,8 @@ public struct ExampleApp {
3638

3739
dump(symbols)
3840

41+
// MARK: - Example of parsing from the file system
42+
3943
let path = "~/Repositories/myProject" as NSString
4044
let directoryURL = URL(fileURLWithPath: path.expandingTildeInPath)
4145

@@ -48,6 +52,8 @@ public struct ExampleApp {
4852

4953
dump(allSymbols)
5054

55+
// MARK: - Example of StringBuilder
56+
5157
@StringBuilder var output: String {
5258
"""
5359

0 commit comments

Comments
 (0)