GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - doHernandezM/SwiftScript: 1 part HyperCard, 1 part realBasic, and 3 parts Swift. This code currently just highlights most swift code. However, in the future this will be able to do things based on the compiled text. I'm thinking that I should be able to use blocks to get things done.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
.swiftpm/xcode/package.xcworkspace/xcshareddata
.swiftpm/xcode/package.xcworkspace/xcshareddata
 
 
Sources
Sources
 
 
Tests/SwiftScriptTests
Tests/SwiftScriptTests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

SwiftScript v0.1.1

"Lite" Version of Swift: for fun

1 part HyperCard, 1 part realBasic(rip), and 3 parts Swift.

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

Status

• 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

  1. Conform to
public protocol SchwiftScriptDelegate {
   func update()
}
  1. Set the designated delegate
SwiftScript.compiler.delegate = myDelegate
  1. Set the compilers string to string to be compiled or highlighted
SwiftScript.compiler.string = myStringToBeCompiled
  1. Once the string has been compiled, you can access the attributed strings via
let myAttributedString: NSAttributedString = SwiftScript.compiler.attributedString 
  1. Or you can access the compiled lines, errors and vars via
var errors: [SwiftScript.Error] = SwiftScript.compiler.state.errors

Requires:

  1. Swift ~4, developed under 5.2+
  2. macOS 10.15+ for Syntext Highlighting

About

1 part HyperCard, 1 part realBasic, and 3 parts Swift. This code currently just highlights most swift code. However, in the future this will be able to do things based on the compiled text. I'm thinking that I should be able to use blocks to get things done.

Topics

applescripthypercardiosmacosrealbasicswift

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.