Git Product home page Git Product logo

shantycodekt's Introduction

ShantyCode

Syntax

Ho-iness

This language requires that you start some lines with ho, but not too many. This document will not disclose how many are required.

Variables

Declaring a variable

Bonny ship the <var name>

Setting a variable

For the bonny ship, the <var name>, goes a-fishing for the <value>

Variable maths

Adding
<var name or value> cheers for the <var name> and the <result var name>

Subtraction

Well don't you weep, my bonny <var name or value>, though you'll be left behind <var name or value>

Functions

Declaring a function

What will we do with a <fun name> sailor?
<othercode>
Early in the morning!

Calling a function

The name of the ship was the <fun name>

Logic

If statements

Comparisons
<varname>man come of whale to y            x > y
<varname>man come in tow to y              x < y
<varname>man come not in the port of y     x != y
<varname>man come in the port of y         x == y
If
Soon may the <comparison>
<code>
Leave her, Johnny, leave her
Else
One day, when the tonguing is done
<code>
Leave her, Johnny, leave her

Labels

Defining
Here be the port of <name> 
Going to
Dock in port <name>
Skipping a line
A line was cut, A <condition> was freed

I/O

Output to STDOUT

I thought I heard the Old Man say <var name or value>

Input from STDIN

If you wanna get to Tesco, boys, you've gotta get by <var name>!

Types

String

"<any sequence of characters>"

Integer

<digits>

Float

<digits>.<digits>

End of a program or block

Leave her, Johnny, leave her

Notes for implementations

Amount of ho needed

To check if the number of ho prefixes are correct you need to send a get request to TBD/ho with the number of lines and the ho number. It will return 1 if the amount is correct and 0 if not. Also, what ever you do, don't try and bruteforce the number we have thought of this and have already added barriers to that working

shantycodekt's People

Contributors

exoskye avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.