The intent of Schwifty is to be even more light weight and easy to use than Swfit. It does this by dropping support for everything but assigning variables, arithmetic and if statements.
Download the demo app Schwifty for more
• This code currently just highlights most swift code. However, in the future this will be able to do things based on the compiled text. • Going to use pre-fab blocks to support
Todo: • Highlight entered text vs error vs string
I'm thinking that I should be able to use blocks to get things done.
To get started
public protocol SchwiftScriptDelegate {
func update()
}
SwiftScript.compiler.delegate = myDelegate
SwiftScript.compiler.string = myStringToBeCompiled
let myAttributedString: NSAttributedString = SwiftScript.compiler.attributedString
var errors: [SwiftScript.Error] = SwiftScript.compiler.state.errors
link |
Stars: 2 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics