/tykeScript

A Yorkshire based language spec

Primary LanguageJavaScript

TykeScript

Still in early stages of getting some good keywords together!

aye : true

nay : false

nowt : null

owt : any

mi'sen : this

blether: print line

ta-ra : returns ta-ra wi' : return with value

now then : declare a function

ey up : declare a variable

muck or nettles : try/catch

gis'un : increment a number by 1

ger'ova : array shift

ger'inther : array push

ger'onwiyer : array pop

Eeh by gum : Error

Hello, World!

ey up helloWorld wa' "Now Then, World!"
blether on helloWorld

Assignment

ey up counter wa' 1

Function Declaration

now then sum
	wi x y
	x an' y

Comparison

ey up myBool wa' nowt

myBool in't aye myBool is

Iteration over arrays

gan 'til gibbed myArray

try / catch

muck myBool nettles Eeh by gum