Skip to content

Fully fledged example #10

@klaernie

Description

@klaernie

Hi there!

Could you please provide an example that shows an absolute swift beginner like myself how to do the most basic task?

My first attempt was literally copying the example from the README into a test.swift file, and handing that to swift: swift test.swift.
That of cause fails and complains:

/home/test.swift:1:12: error: cannot find 'Data' in scope
let data = Data(contentsOfFile: "ma_rules.rwz")!
           ^~~~
/home/test.swift:2:16: error: cannot find 'OutlookRulesFile' in scope
let file = try OutlookRulesFile(data: data)
               ^~~~~~~~~~~~~~~~

If you're wondering what I'm trying to accomplish:
I'd like to generally dump my way-too-big ruleset in a text format that is easy to read, so I can take a stab at reorganizing and making a more-understandable ruleset with less bugs.

Thanks and best regards,
Andre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions