Skip to content

Commit e98fbcf

Browse files
committed
Squirrel chatters "Hello"
The time-to-hello world for this one was excellent! And the language itself looks fairly full-fledged. Also, the extension for the files, is .nut which is almost as fun as emojicode's extensions! 37 to go.
1 parent 7a4a779 commit e98fbcf

File tree

6 files changed

+31
-1
lines changed

6 files changed

+31
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<p align="center">
44
<a href="https://hub.docker.com/r/100hellos" alt="DockerHub!">
5-
<img src="https://img.shields.io/badge/Hello%20World!-38_to_go-yellow"
5+
<img src="https://img.shields.io/badge/Hello%20World!-37_to_go-yellow"
66
height="130"></a>
77
</p>
88

squirrel/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# syntax=docker/dockerfile:1
2+
# escape=\
3+
FROM 100hellos/050-c:local
4+
5+
RUN sudo \
6+
apk add --no-cache \
7+
cmake g++
8+
9+
COPY --chown=human:human ./artifacts /artifacts
10+
RUN cd /artifacts && make install
11+
12+
COPY --chown=human:human ./files /hello-world

squirrel/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ../Makefile.language-container.mk

squirrel/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Squirrel
2+
3+
Squirrel is a high-level, imperative-OO programming language, designed to be a powerful scripting tool that fits within the size, memory bandwidth, and real-time requirements of applications like games. Squirrel offers a wide range of features like dynamic typing, delegation, higher order functions, generators, tail recursion, exception handling, automatic memory management while fitting both compiler and virtual machine into about 6k lines of C++ code. [Official Docs](http://www.squirrel-lang.org/squirreldoc/reference/introduction.html)

squirrel/artifacts/Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PREFIX ?= /usr/local
2+
3+
.PHONY: install
4+
5+
# This is the only necessary target in the Makefile
6+
# and it's expected to place the language interpretter
7+
# or compiler in the path.
8+
install:
9+
git clone https://github.com/albertodemichelis/squirrel
10+
cd squirrel && mkdir build && cd build && cmake .. && make && sudo make install
11+
cd .. && rm -rf build

squirrel/files/hello-world.nut

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sq
2+
3+
::print("Hello World!")

0 commit comments

Comments
 (0)