Skip to content

Commit 260b38e

Browse files
committed
Added nickle implementation
1 parent b39d954 commit 260b38e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ This ASCII representation is a cartoon mascot at [Cerner Engineering](http://eng
5757
* [objective-c](http://en.wikipedia.org/wiki/Objective-C) - [art.m](objectivec/art.m) (`clang -fobjc-arc art.m -o art && ./art`)
5858
* [ocaml](https://ocaml.org) - [art.ml](ocaml/art.ml) (`ocaml art.ml`)
5959
* [ooc](http://ooc-lang.org/) - [art.ooc](ooc/art.ooc) (`rock art.ooc && ./art`)
60+
* [nickle](http://www.nickle.org/) - [art.nickle](nickle/art.nickle) (`nickle art.nickle`)
6061
* [node.js](http://nodejs.org/) - [art.js](node/art.js) (`node art.js`)
6162
* [perl](https://www.perl.org/) - [art.pl](perl/art.pl) (`perl art.pl`)
6263
* [php](http://php.net/) - [art.php](php/art.php) (`php art.php`)

nickle/art.nickle

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// "2 to the 5th" programming competition @ engineering.cerner.com
2+
//
3+
// Read in the ASCII art file and simply print it to the console.
4+
// Note: This assumes you are executing "nickle art.nickle" in the
5+
// current working directory.
6+
//
7+
// Reference: http://www.nickle.org/tutorial/c856.html#AEN863
8+
//
9+
file f = File::open ("../art/alan.txt", "r");
10+
do
11+
printf ("%s\n", File::fgets (f));
12+
while (!File::end (f));

0 commit comments

Comments
 (0)