Skip to content

Gfdcvn/SwiftCode

Repository files navigation

Banner

Swiftcode Programming Language

Stars Forks Pull Requests Issues Contributors License

Relevant Links

Running Swiftcode

Deploying as a docker container

Run docker run -it e403ab292d23 Or sudo docker run -it e403ab292d23

Running Locally

  1. Download this project as ZIP or using git clone.
  2. Run python swiftcode.py in terminal to check for errors. If the terminal returns nothing, continue to next step.
  3. Now you can run python shell.py and start using swiftcode!

Quick Reference Guide

Multi Line Statements Must End With "finish"

Comparisons & Logic
  • == - Integer Comparison
  • `=`` - String Comparison
  • >= - Greater Or Equal
  • <= - Less Or Equal
  • != - Not Equal
  • > - Greater Than
  • < - Less Than

Operations

  • + - Plus
  • - - Minus
  • * - Multiply
  • / - Divide
  • ^ - Power of
  • () - Brackets

Core Functions

  • if - If something is equal to something
  • ifnot - If something is not equal to something check(elif)
  • else - If something is not equal to something
  • show - Print value to terminal
  • give - Return value to program
  • variable - Variable decleration
  • usrinput - Ask user for input
  • termp(str) - Termination point with custom output

Known Issues

Changelog

  • 23.12.25 - Added time commands: sleep({time}, {unit}), date(), date_time(), weekday(), weekday_str()
  • 21.12.25 - Added coloring to error arrows, added coloring to errors, added string comparisons(=`).
  • 27.06.25 - Added the 'termp', 'showwar' and 'showerr' commands.

About

A simple to understand programming language based on python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published