All programming languages shall be conquered!
Welcome to the ambitious world of VikingScript. VikingScript is a Viking themed language which keeps the essence of many other high-level programming languages like JavaScript. Years of delicate syntax has turned us into barbaric hammer-swinging Vikings!
by Will Ruskin, Zander Zemilak and Dylan McGoldrick
VikingScript has a number of features:
- Weakly typed
- Dynamically typed
.VK
file extension
Below is the example code which you can see has a big viking influence!
- Classic hello, world program
runes
are the letters of an ancient Latin alphabet which the Vikings used
JavaScript | VikingScript |
---|---|
console.log("hello, world") |
runes("hello, world") |
kalla
means declare in Norse- No semi-colons
- No need to specify the type of the variable
JavaScript | VikingScript |
---|---|
let x = 5 |
kalla x = 5 |
hverfa
identifier used, meaning "to return" in Norse
valhalla
being the majestic heaven in Asgard where all Vikings strive to be- No return type needed
JavaScript | VikingScript |
---|---|
function add(x,y) { |
valhalla add(x, y) { |
- The comment is based off a Viking helmet
JavaScript | VikingScript |
---|---|
//Bjorn |
}:| Odin |
/_ |
{:| |
- A barbaric syntax that even Vikings can understand
x equal y
x lessThanOrEqual y
x greaterThanOrEqual y
x doesNotEqual y
x greaterThan y
x lessThan y
ef
translates toif
in Norsekostr
the Norse word for "Otherwise" replaceselse
JavaScript | VikingScript |
---|---|
let x = 5 |
kalla x = 5 |
- Replaced
true
andfalse
values to please the Gods
JavaScript | VikingScript |
---|---|
true |
thor |