A language for writing swim practices.

Overview

swimscript

A language for writing swim practices.

Table of contents

Purpose

The goal of swimscript is to create a universal langauge that can be written to create swim practices. Having an easy to write format that is compiled into a universal standard such as a JSON, would make it easier to write and export swim sets into a prefered format. In the future we plan on writing a front end to generate LaTeX from swimscript.

Language Spec

Currently swimscript is in very early development, but here is some example code.

- A sample practice
Warm Up: {
    5 * 125 75 swim, @1:45 , 25 drill, 25 kick
    200 IM, Drill / Swim
    4 * 50 Choice, @:55, Variable
}

Prep Set: {
    4 * 25 IMO, @:45
    6 * 50 Free, @1:00, Maxi Mini
    2 * 125 Choice, @1:25/1:30/1:40, Just make it
}

Main Set: {
    3 * {
        100 Free, @1:20/1:30
        200 Free, @2:40/3:00
        300 Free, @4:00/4:30
        400 Free, @5:20/6:00
        - Very short rest to get pull stuff together
        400 Pull, @5:20/6:00
        300 Pull, @4:00/4:30
        200 Pull, @2:40/3:00
        100 Pull, @1:20/1:30
    }
}

Cool Down: {
    50 Destroy
    50 EZ
}
You might also like...
Thread-safe clone-on-write container for fast concurrent writing and reading.

sync_cow Thread-safe clone-on-write container for fast concurrent writing and reading. SyncCow is a container for concurrent writing and reading of da

A repository for showcasing my knowledge of the Rust programming language, and continuing to learn the language.

Learning Rust I started learning the Rust programming language before using GitHub, but increased its usage afterwards. I have found it to be a fast a

Nyah is a programming language runtime built for high performance and comes with a scripting language.

🐱 Nyah ( Unfinished ) Nyah is a programming language runtime built for high performance and comes with a scripting language. 🎖️ Status Nyah is not c

Mewl, program in cats' language; A just-for-fun language
Mewl, program in cats' language; A just-for-fun language

Mewl The programming language of cats' with the taste of lisp 🤔 What,Why? Well, 2 years ago in 2020, I created a esoteric programming language called

lelang programming language is a toy language based on LLVM.

lelang leang是一门使用Rust编写,基于LLVM(inkwell llvm safe binding library)实现的编程语言,起初作为课程实验项目,现在为个人长期维护项目。 Target Features 支持8至64位的整形类型和32/64位浮点 基本的函数定义,调用,声明外部

The Devils' Programming Language (Quantum Programming Language)

devilslang has roots in Scheme and ML-flavored languages: it's the culmination of everything I expect from a programming language, including the desire to keep everything as minimalistic and concise as possible. At its core, devilslang is lambda-calculus with pattern-matching, structural types, fiber-based concurrency, and syntactic extension.

The Computer Language Benchmarks Game: Rust implementations

The Computer Language Benchmarks Game: Rust implementations This is the version I propose to the The Computer Language Benchmarks Game. For regex-dna,

A community curated list of Rust Language streamers

Awesome Rust Streaming This is a community curated list of livestreams about the programming language Rust. Don't see a stream that you like? Feel fre

Core Temporal SDK that can be used as a base for language specific Temporal SDKs

Core SDK that can be used as a base for all other Temporal SDKs. Getting started See the Architecture doc for some high-level information. This repo u

Comments
  • Add a preprocessor

    Add a preprocessor

    We need to add a preprocessor and the ability to save sets so commonly used sets can be reused with slight modifications. These would be stored in template files, which could contain multiple template. A template would look like:

    TEMPLATE warmup: {
       Warm-up: {
          400 free, $1
          300 kick, $2
          200 IM, $3
          100 choice, build
       }
    }
    

    and you would use #put(warmup, @5:00, @4:00, @3:00, @1:20) to put this template in your .swim files.

    enhancement 
    opened by AidenPetersen 0
  • Displaying swimscript

    Displaying swimscript

    Currently swimscript only compiles to JSON, which isn't particularly useful. This language must compile to to LaTeX or some other typesetting programmed so practices and be printed off.

    enhancement 
    opened by AidenPetersen 0
Owner
Aiden Petersen
Computer Engineering and Math Student at Iowa State University. Software engineer at Iowa State ITS.
Aiden Petersen
A pretty simple VM implemented with C++. Just one of my practices.

Bailan VM Overview Bailan VM is a simple VM implemented in C++. It just one of my little practices, but my friend, Zihao Qu encouraged me to open its

27Onion Nebell 3 Oct 6, 2022
:crab: Small exercises to get you used to reading and writing Rust code!

rustlings ?? ❤️ Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This inclu

The Rust Programming Language 33.1k Jan 2, 2023
A Rust macro for writing nested loop expressions

loop_chain A Rust macro for writing nested loop expressions Usage | Examples | Docs Dependencies [dependencies] loop_chain = "0.1.1" Usage For express

Takayuki Maeda 5 Jul 30, 2021
Take your first step in writing a compiler. Implemented in Rust.

first-step-rust Take your first step in writing a compiler, using Rust. Building from Source Make sure the Rust toolchain is installed on your compute

PKU Compiler Course 13 Aug 28, 2022
🕶 Assorted checks and validations for writing safer Solana programs.

vipers ?? Assorted checks and validations for writing safer Solana programs. Motivation Solana's fee mechanism is unlike Ethereum's, in that the numbe

Saber 131 Sep 14, 2022
S-expression parsing and writing in Rust

rsexp S-expression parsing and writing in Rust using nom parser combinators. This implemantion aims at being compatible with OCaml's sexplib. The main

Laurent Mazare 12 Oct 18, 2022
Writing Interpreters in Rust: a Guide

Writing Interpreters in Rust: a Guide This is an online book covering the lower level topics involved in writing an interpreter in Rust including: mem

Languages Hosted in Rust Working Groups 254 Jan 5, 2023
Learn Rust by writing Entirely Too Many linked lists

Learn Rust by writing Entirely Too Many Linked Lists Read the pretty version at https://rust-unofficial.github.io/too-many-lists/. Building Building r

null 2.4k Jan 3, 2023
A webring of people who make cool stuff. technology, music, art, writing, anything goes!

a webring of people who make cool stuff. technology, music, art, writing, anything goes!

Kognise 44 Dec 6, 2022
This project contains small exercises to get you used to reading and writing Rust code

rustlings ?? ❤️ Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This inclu

Cynthia Tran 1 May 24, 2022